diff options
author | Denys Vlasenko | 2011-05-13 20:57:01 +0200 |
---|---|---|
committer | Denys Vlasenko | 2011-05-13 20:57:01 +0200 |
commit | 60a9414cad23b6e8cc6b13e37675826ed05f7709 (patch) | |
tree | 38b193f0468dd57728fe991e9eaed8abf088deeb /runit/sv.c | |
parent | 8dd29da2c667b6c9ae7381096320b9e31d3a50e2 (diff) | |
download | busybox-60a9414cad23b6e8cc6b13e37675826ed05f7709.zip busybox-60a9414cad23b6e8cc6b13e37675826ed05f7709.tar.gz |
fix "variable 'foo' set but not used" warnings
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'runit/sv.c')
-rw-r--r-- | runit/sv.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -437,7 +437,6 @@ static int control(const char *a) int sv_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int sv_main(int argc UNUSED_PARAM, char **argv) { - unsigned opt; char *x; char *action; const char *varservice = CONFIG_SV_DEFAULT_SERVICE_DIR; @@ -458,7 +457,7 @@ int sv_main(int argc UNUSED_PARAM, char **argv) if (x) waitsec = xatou(x); opt_complementary = "w+:vv"; /* -w N, -v is a counter */ - opt = getopt32(argv, "w:v", &waitsec, &verbose); + getopt32(argv, "w:v", &waitsec, &verbose); argv += optind; action = *argv++; if (!action || !*argv) bb_show_usage(); |