diff options
author | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2007-01-29 22:51:58 +0000 |
---|---|---|
committer | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2007-01-29 22:51:58 +0000 |
commit | fc6a03ef2fa63dcecef603d178139a779b9e7081 (patch) | |
tree | 443636e12ffb52db95168013bbda80f78ed49fe6 /networking/arp.c | |
parent | 0c7ca1fafeb5f23776ba7e1624636ad1698b6536 (diff) | |
download | busybox-w32-fc6a03ef2fa63dcecef603d178139a779b9e7081.tar.gz busybox-w32-fc6a03ef2fa63dcecef603d178139a779b9e7081.tar.bz2 busybox-w32-fc6a03ef2fa63dcecef603d178139a779b9e7081.zip |
preparatory patch for -Wwrite-strings #4
git-svn-id: svn://busybox.net/trunk/busybox@17656 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'networking/arp.c')
-rw-r--r-- | networking/arp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/networking/arp.c b/networking/arp.c index 6bd12656a..33191d89b 100644 --- a/networking/arp.c +++ b/networking/arp.c | |||
@@ -46,7 +46,7 @@ static const struct aftype *ap; /* current address family */ | |||
46 | static const struct hwtype *hw; /* current hardware type */ | 46 | static const struct hwtype *hw; /* current hardware type */ |
47 | static int sockfd; /* active socket descriptor */ | 47 | static int sockfd; /* active socket descriptor */ |
48 | static smallint hw_set; /* flag if hw-type was set (-H) */ | 48 | static smallint hw_set; /* flag if hw-type was set (-H) */ |
49 | static char *device = ""; /* current device */ | 49 | static const char *device = ""; /* current device */ |
50 | 50 | ||
51 | static const char *const options[] = { | 51 | static const char *const options[] = { |
52 | "pub", | 52 | "pub", |
@@ -317,7 +317,7 @@ static int arp_set(char **args) | |||
317 | 317 | ||
318 | /* Print the contents of an ARP request block. */ | 318 | /* Print the contents of an ARP request block. */ |
319 | static void | 319 | static void |
320 | arp_disp(char *name, char *ip, int type, int arp_flags, | 320 | arp_disp(const char *name, char *ip, int type, int arp_flags, |
321 | char *hwa, char *mask, char *dev) | 321 | char *hwa, char *mask, char *dev) |
322 | { | 322 | { |
323 | const struct hwtype *xhw; | 323 | const struct hwtype *xhw; |
@@ -371,7 +371,7 @@ static int arp_show(char *name) | |||
371 | char dev[100]; | 371 | char dev[100]; |
372 | int type, flags; | 372 | int type, flags; |
373 | FILE *fp; | 373 | FILE *fp; |
374 | char *hostname; | 374 | const char *hostname; |
375 | int num; | 375 | int num; |
376 | unsigned entries = 0, shown = 0; | 376 | unsigned entries = 0, shown = 0; |
377 | 377 | ||