aboutsummaryrefslogtreecommitdiff
path: root/runit
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2011-05-13 20:57:01 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2011-05-13 20:57:01 +0200
commit60a9414cad23b6e8cc6b13e37675826ed05f7709 (patch)
tree38b193f0468dd57728fe991e9eaed8abf088deeb /runit
parent8dd29da2c667b6c9ae7381096320b9e31d3a50e2 (diff)
downloadbusybox-w32-60a9414cad23b6e8cc6b13e37675826ed05f7709.tar.gz
busybox-w32-60a9414cad23b6e8cc6b13e37675826ed05f7709.tar.bz2
busybox-w32-60a9414cad23b6e8cc6b13e37675826ed05f7709.zip
fix "variable 'foo' set but not used" warnings
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'runit')
-rw-r--r--runit/sv.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/runit/sv.c b/runit/sv.c
index 322688a36..5b01c875c 100644
--- a/runit/sv.c
+++ b/runit/sv.c
@@ -437,7 +437,6 @@ static int control(const char *a)
437int sv_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 437int sv_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
438int sv_main(int argc UNUSED_PARAM, char **argv) 438int sv_main(int argc UNUSED_PARAM, char **argv)
439{ 439{
440 unsigned opt;
441 char *x; 440 char *x;
442 char *action; 441 char *action;
443 const char *varservice = CONFIG_SV_DEFAULT_SERVICE_DIR; 442 const char *varservice = CONFIG_SV_DEFAULT_SERVICE_DIR;
@@ -458,7 +457,7 @@ int sv_main(int argc UNUSED_PARAM, char **argv)
458 if (x) waitsec = xatou(x); 457 if (x) waitsec = xatou(x);
459 458
460 opt_complementary = "w+:vv"; /* -w N, -v is a counter */ 459 opt_complementary = "w+:vv"; /* -w N, -v is a counter */
461 opt = getopt32(argv, "w:v", &waitsec, &verbose); 460 getopt32(argv, "w:v", &waitsec, &verbose);
462 argv += optind; 461 argv += optind;
463 action = *argv++; 462 action = *argv++;
464 if (!action || !*argv) bb_show_usage(); 463 if (!action || !*argv) bb_show_usage();