diff options
author | Denis Vlasenko | 2006-09-03 12:21:59 +0000 |
---|---|---|
committer | Denis Vlasenko | 2006-09-03 12:21:59 +0000 |
commit | 27af5a0dd34b1b392aa69b548e18935aafe66e5f (patch) | |
tree | 0de777f153dec72a0339c12d360e8bf156d17b45 /networking/arping.c | |
parent | 87d80dcc3e81d80caa11ed88fe6136ffe3e605dc (diff) | |
download | busybox-27af5a0dd34b1b392aa69b548e18935aafe66e5f.zip busybox-27af5a0dd34b1b392aa69b548e18935aafe66e5f.tar.gz |
replacing func() with xfunc() where appropriate
Diffstat (limited to 'networking/arping.c')
-rw-r--r-- | networking/arping.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/networking/arping.c b/networking/arping.c index 5665ddb..08b2727 100644 --- a/networking/arping.c +++ b/networking/arping.c @@ -259,7 +259,7 @@ int arping_main(int argc, char **argv) char *source = NULL; char *target; - s = socket(PF_PACKET, SOCK_DGRAM, 0); + s = xsocket(PF_PACKET, SOCK_DGRAM, 0); ifindex = errno; // Drop suid root privileges @@ -346,11 +346,8 @@ int arping_main(int argc, char **argv) if (!(cfg&dad) || src.s_addr) { struct sockaddr_in saddr; - int probe_fd = socket(AF_INET, SOCK_DGRAM, 0); /* maybe use bb_xsocket? */ + int probe_fd = xsocket(AF_INET, SOCK_DGRAM, 0); - if (probe_fd < 0) { - bb_error_msg_and_die("socket"); - } if (device) { if (setsockopt (probe_fd, SOL_SOCKET, SO_BINDTODEVICE, device, |