net/: Fix alignment and spacing problems found by tools/nxstyle.

This commit is contained in:
Gregory Nutt
2019-07-02 18:02:23 -06:00
parent 7b554d6665
commit 1346f29151
42 changed files with 198 additions and 194 deletions
+2 -2
View File
@@ -106,7 +106,7 @@ FAR struct net_driver_s *netdev_findbyindex(int ifindex)
* registered.
*/
if (dev->d_ifindex == ifindex)
if (dev->d_ifindex == ifindex)
#else
/* NOTE that this option is not a safe way to enumerate network
* devices: There could be changes to the list of registered device
@@ -165,7 +165,7 @@ int netdev_nextindex(int ifindex)
net_unlock();
return ifindex + 1;
}
}
}
net_unlock();
+4 -4
View File
@@ -144,9 +144,9 @@ static int ifconf_ipv4_callback(FAR struct net_driver_s *dev, FAR void *arg)
net_ipv4addr_copy(inaddr->sin_addr.s_addr, dev->d_ipaddr);
}
/* Increment the size of the buffer in any event */
/* Increment the size of the buffer in any event */
ifc->ifc_len += sizeof(struct ifreq);
ifc->ifc_len += sizeof(struct ifreq);
}
return 0;
@@ -221,9 +221,9 @@ static int ifconf_ipv6_callback(FAR struct net_driver_s *dev, FAR void *arg)
net_ipv6addr_copy(inaddr->sin6_addr.s6_addr16, dev->d_ipv6addr);
}
/* Increment the size of the buffer in any event */
/* Increment the size of the buffer in any event */
lifc->lifc_len += sizeof(struct lifreq);
lifc->lifc_len += sizeof(struct lifreq);
}
return 0;
+2 -2
View File
@@ -153,9 +153,9 @@ int netdev_unregister(FAR struct net_driver_s *dev)
}
else
{
/* The entry was at the beginning of the list */
/* The entry was at the beginning of the list */
g_netdevices = curr->flink;
g_netdevices = curr->flink;
}
curr->flink = NULL;