summaryrefslogtreecommitdiff
path: root/networking/udhcp/socket.c
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer2006-12-19 16:31:09 +0000
committerBernhard Reutner-Fischer2006-12-19 16:31:09 +0000
commit28fbd69bf8a0482de2816cc189fdd0e9ed551997 (patch)
treec2d7e7b1e0b9b87748cb74b52dd3599d5500feca /networking/udhcp/socket.c
parent359d7ca0e70d4acfc3b7e792bf28f5b5581af8ff (diff)
downloadbusybox-28fbd69bf8a0482de2816cc189fdd0e9ed551997.zip
busybox-28fbd69bf8a0482de2816cc189fdd0e9ed551997.tar.gz
- use xlisten/xsocket some more. Saves .25 kB
Diffstat (limited to 'networking/udhcp/socket.c')
-rw-r--r--networking/udhcp/socket.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/networking/udhcp/socket.c b/networking/udhcp/socket.c
index 9ea2002..8138f5a 100644
--- a/networking/udhcp/socket.c
+++ b/networking/udhcp/socket.c
@@ -95,11 +95,7 @@ int listen_socket(uint32_t ip, int port, char *inf)
struct sockaddr_in addr;
DEBUG("Opening listen socket on 0x%08x:%d %s", ip, port, inf);
- fd = socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP);
- if (fd < 0) {
- bb_perror_msg("socket");
- return -1;
- }
+ fd = xsocket(PF_INET, SOCK_DGRAM, IPPROTO_UDP);
memset(&addr, 0, sizeof(addr));
addr.sin_family = AF_INET;