summaryrefslogtreecommitdiff
path: root/networking/arp.c
diff options
context:
space:
mode:
authorDenis Vlasenko2007-01-29 22:51:58 +0000
committerDenis Vlasenko2007-01-29 22:51:58 +0000
commitab2aea44479fd6f519bccd651a37f30e792b7593 (patch)
tree443636e12ffb52db95168013bbda80f78ed49fe6 /networking/arp.c
parent06c0a71d2315756db874e98bc4f760ca3283b6a6 (diff)
downloadbusybox-ab2aea44479fd6f519bccd651a37f30e792b7593.zip
busybox-ab2aea44479fd6f519bccd651a37f30e792b7593.tar.gz
preparatory patch for -Wwrite-strings #4
Diffstat (limited to 'networking/arp.c')
-rw-r--r--networking/arp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/networking/arp.c b/networking/arp.c
index 6bd1265..33191d8 100644
--- a/networking/arp.c
+++ b/networking/arp.c
@@ -46,7 +46,7 @@ static const struct aftype *ap; /* current address family */
static const struct hwtype *hw; /* current hardware type */
static int sockfd; /* active socket descriptor */
static smallint hw_set; /* flag if hw-type was set (-H) */
-static char *device = ""; /* current device */
+static const char *device = ""; /* current device */
static const char *const options[] = {
"pub",
@@ -317,7 +317,7 @@ static int arp_set(char **args)
/* Print the contents of an ARP request block. */
static void
-arp_disp(char *name, char *ip, int type, int arp_flags,
+arp_disp(const char *name, char *ip, int type, int arp_flags,
char *hwa, char *mask, char *dev)
{
const struct hwtype *xhw;
@@ -371,7 +371,7 @@ static int arp_show(char *name)
char dev[100];
int type, flags;
FILE *fp;
- char *hostname;
+ const char *hostname;
int num;
unsigned entries = 0, shown = 0;