diff options
Diffstat (limited to 'networking/udhcp/socket.c')
-rw-r--r-- | networking/udhcp/socket.c | 6 |
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; |