summaryrefslogtreecommitdiffstats
path: root/usr.bin/ftp/ftp.c
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2000-06-24 15:34:31 +0000
committerru <ru@FreeBSD.org>2000-06-24 15:34:31 +0000
commitf86fac3085989f9da9b6412106f428dd3138c544 (patch)
treeafa1a1b1f126ea13d9b0181dc79b697b1170f290 /usr.bin/ftp/ftp.c
parent659df59b0e36fdcc741f84bef9a6c11908fa5a42 (diff)
downloadFreeBSD-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.c4
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) {
OpenPOWER on IntegriCloud