commit | db7f2e5881b9ae40896d7660cd2f2446f514c72d | [log] [tgz] |
---|---|---|
author | Denis Vlasenko <vda.linux@googlemail.com> | Sat Sep 02 16:16:23 2006 +0000 |
committer | Denis Vlasenko <vda.linux@googlemail.com> | Sat Sep 02 16:16:23 2006 +0000 |
tree | 302ceaf4aabb508dc8a772989fa1151f0406663b | |
parent | cb6874cc66df69fe49c65338a67fec1206d02c4b [diff] [blame] |
ping6: resolve interface name to number early. gcc is more efficient at truncating int to int16 via cast, use that instead of &.
diff --git a/networking/ping.c b/networking/ping.c index 8ccb7e0..967a3e3 100644 --- a/networking/ping.c +++ b/networking/ping.c
@@ -416,7 +416,7 @@ if (argc < 1) bb_show_usage(); - myid = getpid() & 0xFFFF; + myid = (int16_t) getpid(); ping(*argv); return EXIT_SUCCESS; }