diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-12-29 01:03:17 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-12-29 01:03:17 +0000 |
commit | d6e8f9450cf055f0abfa424c5aa9e5a7c30d6593 (patch) | |
tree | ead38cb12979a2dd8e17be0ed840c4171e460784 | |
parent | e40e76f3cd3702b1891231f585e5f38867a52b29 (diff) | |
download | busybox-w32-d6e8f9450cf055f0abfa424c5aa9e5a7c30d6593.tar.gz busybox-w32-d6e8f9450cf055f0abfa424c5aa9e5a7c30d6593.tar.bz2 busybox-w32-d6e8f9450cf055f0abfa424c5aa9e5a7c30d6593.zip |
sysctl: fix gcc warning (false positive)
-rw-r--r-- | procps/sysctl.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/procps/sysctl.c b/procps/sysctl.c index 23fb16e9e..262574e61 100644 --- a/procps/sysctl.c +++ b/procps/sysctl.c | |||
@@ -97,7 +97,8 @@ static int sysctl_handle_preload_file(const char *filename) | |||
97 | static int sysctl_act_on_setting(char *setting) | 97 | static int sysctl_act_on_setting(char *setting) |
98 | { | 98 | { |
99 | int fd, retval = EXIT_SUCCESS; | 99 | int fd, retval = EXIT_SUCCESS; |
100 | char *cptr, *outname, *value; | 100 | char *cptr, *outname; |
101 | char *value = value; /* for compiler */ | ||
101 | 102 | ||
102 | outname = xstrdup(setting); | 103 | outname = xstrdup(setting); |
103 | 104 | ||
@@ -235,7 +236,7 @@ static void sysctl_dots_to_slashes(char *name) | |||
235 | */ | 236 | */ |
236 | end = name + strlen(name); | 237 | end = name + strlen(name); |
237 | last_good = name - 1; | 238 | last_good = name - 1; |
238 | *end = '.'; /* trick the loop in trying full name too */ | 239 | *end = '.'; /* trick the loop into trying full name too */ |
239 | 240 | ||
240 | again: | 241 | again: |
241 | cptr = end; | 242 | cptr = end; |