diff options
author | "Vladimir N. Oleynik" <dzo@simtreas.ru> | 2005-10-12 15:34:25 +0000 |
---|---|---|
committer | "Vladimir N. Oleynik" <dzo@simtreas.ru> | 2005-10-12 15:34:25 +0000 |
commit | 6c35c7c97628cb81eb26c2a059b0dde2879d91aa (patch) | |
tree | 0da08a6d852fcb5d68bbe3a368460ed815b74923 /networking/traceroute.c | |
parent | 86a1073e0bfa608defbfaa43d94a537c5e700efe (diff) | |
download | busybox-w32-6c35c7c97628cb81eb26c2a059b0dde2879d91aa.tar.gz busybox-w32-6c35c7c97628cb81eb26c2a059b0dde2879d91aa.tar.bz2 busybox-w32-6c35c7c97628cb81eb26c2a059b0dde2879d91aa.zip |
usage bb_dev_null
Diffstat (limited to 'networking/traceroute.c')
-rw-r--r-- | networking/traceroute.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/networking/traceroute.c b/networking/traceroute.c index 15d55e79b..d716f2f73 100644 --- a/networking/traceroute.c +++ b/networking/traceroute.c | |||
@@ -321,7 +321,6 @@ static int maxpacket = 32 * 1024; /* max ip packet size */ | |||
321 | static int pmtu; /* Path MTU Discovery (RFC1191) */ | 321 | static int pmtu; /* Path MTU Discovery (RFC1191) */ |
322 | 322 | ||
323 | static char *hostname; | 323 | static char *hostname; |
324 | static const char devnull[] = "/dev/null"; | ||
325 | 324 | ||
326 | static u_short ident; | 325 | static u_short ident; |
327 | static u_short port = 32768 + 666; /* start udp dest port # for probe packets */ | 326 | static u_short port = 32768 + 666; /* start udp dest port # for probe packets */ |
@@ -1090,7 +1089,7 @@ traceroute_main(int argc, char *argv[]) | |||
1090 | bb_perror_msg_and_die("unknown protocol %s", cp); | 1089 | bb_perror_msg_and_die("unknown protocol %s", cp); |
1091 | 1090 | ||
1092 | /* Insure the socket fds won't be 0, 1 or 2 */ | 1091 | /* Insure the socket fds won't be 0, 1 or 2 */ |
1093 | do n = bb_xopen(devnull, O_RDONLY); while (n < 2); | 1092 | do n = bb_xopen(bb_dev_null, O_RDONLY); while (n < 2); |
1094 | if (n > 2) | 1093 | if (n > 2) |
1095 | close(n); | 1094 | close(n); |
1096 | 1095 | ||