diff options
author | ru <ru@FreeBSD.org> | 2000-06-24 15:34:31 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2000-06-24 15:34:31 +0000 |
commit | f86fac3085989f9da9b6412106f428dd3138c544 (patch) | |
tree | afa1a1b1f126ea13d9b0181dc79b697b1170f290 /usr.bin/ftp/ftp.c | |
parent | 659df59b0e36fdcc741f84bef9a6c11908fa5a42 (diff) | |
download | FreeBSD-src-f86fac3085989f9da9b6412106f428dd3138c544.zip FreeBSD-src-f86fac3085989f9da9b6412106f428dd3138c544.tar.gz |
- Reflect `gateport' variable type change.
- Make it compile with -Wall.
PR: 18619
Submitted by: David Malone <dwmalone@maths.tcd.ie>
Reviewed by: ru
Diffstat (limited to 'usr.bin/ftp/ftp.c')
-rw-r--r-- | usr.bin/ftp/ftp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/ftp/ftp.c b/usr.bin/ftp/ftp.c index 8d38669..1862333 100644 --- a/usr.bin/ftp/ftp.c +++ b/usr.bin/ftp/ftp.c @@ -1178,6 +1178,9 @@ initconn() #endif if (passivemode) { +#ifdef __GNUC__ /* XXX: to shut up gcc warnings */ + (void)&pasvcmd; +#endif data_addr = myctladdr; data = socket(data_addr.su_family, SOCK_STREAM, 0); if (data < 0) { @@ -1327,7 +1330,6 @@ initconn() } } else if (strcmp(pasvcmd, "EPSV") == 0) { char delim[4]; - char *tcpport; prt[0] = 0; if (code / 10 == 22 && code != 229) { |