diff options
author | Denis Vlasenko | 2007-01-22 14:12:08 +0000 |
---|---|---|
committer | Denis Vlasenko | 2007-01-22 14:12:08 +0000 |
commit | 703e20235aa0624d3ff4335c1e86edaa6e21efe2 (patch) | |
tree | 49e8451efad93b75c0be74ee553d3b3f8c04a25d /networking/udhcp/socket.c | |
parent | 6cd2d2bcba37a13d0d73326dd7bca64bbccce4f8 (diff) | |
download | busybox-703e20235aa0624d3ff4335c1e86edaa6e21efe2.zip busybox-703e20235aa0624d3ff4335c1e86edaa6e21efe2.tar.gz |
cleanups: unnecessary casts, unified const_1, eliminate cross-.c file
prototypes (heresy!), add spaces in places like "flags&NETSTAT_CONNECTED",
removed unused #defines, #ifdef -> #if, use uint32_t for ipv4 addrs.
Diffstat (limited to 'networking/udhcp/socket.c')
-rw-r--r-- | networking/udhcp/socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/udhcp/socket.c b/networking/udhcp/socket.c index 8138f5a..76ae717 100644 --- a/networking/udhcp/socket.c +++ b/networking/udhcp/socket.c @@ -112,7 +112,7 @@ int listen_socket(uint32_t ip, int port, char *inf) } strncpy(interface.ifr_name, inf, IFNAMSIZ); - if (setsockopt(fd, SOL_SOCKET, SO_BINDTODEVICE, (char *)&interface, sizeof(interface)) < 0) { + if (setsockopt(fd, SOL_SOCKET, SO_BINDTODEVICE, &interface, sizeof(interface)) < 0) { close(fd); return -1; } |