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 /networking/ftpgetput.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 'networking/ftpgetput.c')
-rw-r--r-- | networking/ftpgetput.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/networking/ftpgetput.c b/networking/ftpgetput.c index 66316e2..f63df55 100644 --- a/networking/ftpgetput.c +++ b/networking/ftpgetput.c @@ -60,7 +60,7 @@ struct globals { FILE *control_stream; int verbose_flag; int do_continue; - char buf[1]; /* actually [BUFSZ] */ + char buf[4]; /* actually [BUFSZ] */ } FIX_ALIASING; #define G (*(struct globals*)&bb_common_bufsiz1) enum { BUFSZ = COMMON_BUFSIZE - offsetof(struct globals, buf) }; @@ -105,7 +105,7 @@ static int ftpcmd(const char *s1, const char *s2) } do { - strcpy(buf, "EOF"); + strcpy(buf, "EOF"); /* for ftp_die */ if (fgets(buf, BUFSZ - 2, control_stream) == NULL) { ftp_die(NULL); } @@ -316,7 +316,6 @@ static const char ftpgetput_longopts[] ALIGN1 = int ftpgetput_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int ftpgetput_main(int argc UNUSED_PARAM, char **argv) { - unsigned opt; const char *port = "ftp"; /* socket to ftp server */ @@ -345,7 +344,7 @@ int ftpgetput_main(int argc UNUSED_PARAM, char **argv) applet_long_options = ftpgetput_longopts; #endif opt_complementary = "-2:vv:cc"; /* must have 2 to 3 params; -v and -c count */ - opt = getopt32(argv, "cvu:p:P:", &user, &password, &port, + getopt32(argv, "cvu:p:P:", &user, &password, &port, &verbose_flag, &do_continue); argv += optind; |