arp: stop using globals

function                                             old     new   delta
hw_set                                                 1       -      -1
arp_main                                            1559    1558      -1
sockfd                                                 8       4      -4
hw                                                     4       -      -4
device                                                 4       -      -4
ap                                                     4       -      -4
packed_usage                                       25402   25393      -9
------------------------------------------------------------------------------
(add/remove: 0/4 grow/shrink: 0/3 up/down: 0/-27)             Total: -27 bytes
This commit is contained in:
Denis Vlasenko
2008-11-13 00:05:17 +00:00
parent fd5a3d2812
commit 4d47692fb8
2 changed files with 48 additions and 31 deletions

View File

@@ -61,12 +61,11 @@
"\n -v Verbose" \
#define arp_trivial_usage \
"\n" \
"[-vn] [-H type] [-i if] -a [hostname]\n" \
"[-v] [-i if] -d hostname [pub]\n" \
"[-v] [-H type] [-i if] -s hostname hw_addr [temp]\n" \
"[-v] [-H type] [-i if] -s hostname hw_addr [netmask nm] pub\n" \
"[-v] [-H type] [-i if] -Ds hostname ifa [netmask nm] pub\n"
"\n[-vn] [-H type] [-i if] -a [hostname]" \
"\n[-v] [-i if] -d hostname [pub]" \
"\n[-v] [-H type] [-i if] -s hostname hw_addr [temp]" \
"\n[-v] [-H type] [-i if] -s hostname hw_addr [netmask nm] pub" \
"\n[-v] [-H type] [-i if] -Ds hostname ifa [netmask nm] pub"
#define arp_full_usage "\n\n" \
"Manipulate ARP cache\n" \
"\nOptions:" \