diff options
author | Bernhard Reutner-Fischer | 2006-12-19 16:31:09 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer | 2006-12-19 16:31:09 +0000 |
commit | 28fbd69bf8a0482de2816cc189fdd0e9ed551997 (patch) | |
tree | c2d7e7b1e0b9b87748cb74b52dd3599d5500feca /networking/udhcp/dhcprelay.c | |
parent | 359d7ca0e70d4acfc3b7e792bf28f5b5581af8ff (diff) | |
download | busybox-28fbd69bf8a0482de2816cc189fdd0e9ed551997.zip busybox-28fbd69bf8a0482de2816cc189fdd0e9ed551997.tar.gz |
- use xlisten/xsocket some more. Saves .25 kB
Diffstat (limited to 'networking/udhcp/dhcprelay.c')
-rw-r--r-- | networking/udhcp/dhcprelay.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/networking/udhcp/dhcprelay.c b/networking/udhcp/dhcprelay.c index e3a8168..0527394 100644 --- a/networking/udhcp/dhcprelay.c +++ b/networking/udhcp/dhcprelay.c @@ -169,7 +169,6 @@ static int init_sockets(char **client, int num_clients, /* talk to real server on bootps */ fds[0] = listen_socket(htonl(INADDR_ANY), 67, server); - if (fds[0] < 0) return -1; *max_socket = fds[0]; /* array starts at 1 since server is 0 */ @@ -178,7 +177,6 @@ static int init_sockets(char **client, int num_clients, for (i=1; i < num_clients; i++) { /* listen for clients on bootps */ fds[i] = listen_socket(htonl(INADDR_ANY), 67, client[i-1]); - if (fds[i] < 0) return -1; if (fds[i] > *max_socket) *max_socket = fds[i]; } @@ -321,8 +319,6 @@ int dhcprelay_main(int argc, char **argv) signal(SIGINT, dhcprelay_signal_handler); num_sockets = init_sockets(clients, num_sockets, argv[2], fds, &max_socket); - if (num_sockets == -1) - bb_perror_msg_and_die("init_sockets() failed"); if (read_interface(argv[2], NULL, &gw_ip, NULL) == -1) return 1; |