diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-01-29 23:43:18 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-01-29 23:43:18 +0000 |
commit | 89ef65f02463b27313ff0eba806aa6e4aec10716 (patch) | |
tree | 70eab3e72843b1418ef3d88437c1f1a19169bda8 /networking/zcip.c | |
parent | ab2aea44479fd6f519bccd651a37f30e792b7593 (diff) | |
download | busybox-w32-89ef65f02463b27313ff0eba806aa6e4aec10716.tar.gz busybox-w32-89ef65f02463b27313ff0eba806aa6e4aec10716.tar.bz2 busybox-w32-89ef65f02463b27313ff0eba806aa6e4aec10716.zip |
preparatory patch for -Wwrite-strings #5
Diffstat (limited to 'networking/zcip.c')
-rw-r--r-- | networking/zcip.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/networking/zcip.c b/networking/zcip.c index 5d57c4287..b56870652 100644 --- a/networking/zcip.c +++ b/networking/zcip.c | |||
@@ -130,10 +130,10 @@ static void arp(int fd, struct sockaddr *saddr, int op, | |||
130 | /** | 130 | /** |
131 | * Run a script. | 131 | * Run a script. |
132 | */ | 132 | */ |
133 | static int run(char *script, char *arg, char *intf, struct in_addr *ip) | 133 | static int run(const char *script, const char *arg, const char *intf, struct in_addr *ip) |
134 | { | 134 | { |
135 | int pid, status; | 135 | int pid, status; |
136 | char *why; | 136 | const char *why; |
137 | 137 | ||
138 | if(1) { //always true: if (script != NULL) | 138 | if(1) { //always true: if (script != NULL) |
139 | VDBG("%s run %s %s\n", intf, script, arg); | 139 | VDBG("%s run %s %s\n", intf, script, arg); |
@@ -207,7 +207,7 @@ static int state = PROBE; | |||
207 | int zcip_main(int argc, char *argv[]) | 207 | int zcip_main(int argc, char *argv[]) |
208 | { | 208 | { |
209 | struct ether_addr eth_addr; | 209 | struct ether_addr eth_addr; |
210 | char *why; | 210 | const char *why; |
211 | int fd; | 211 | int fd; |
212 | 212 | ||
213 | // parse commandline: prog [options] ifname script | 213 | // parse commandline: prog [options] ifname script |