summaryrefslogtreecommitdiffstats
path: root/usr.bin/ftp/main.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/main.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/main.c')
-rw-r--r--usr.bin/ftp/main.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/usr.bin/ftp/main.c b/usr.bin/ftp/main.c
index f38d3b0..dd1f210 100644
--- a/usr.bin/ftp/main.c
+++ b/usr.bin/ftp/main.c
@@ -79,11 +79,9 @@ main(argc, argv)
int argc;
char *argv[];
{
- struct servent *sp;
int ch, top, rval;
- long port;
struct passwd *pw = NULL;
- char *cp, *ep, homedir[MAXPATHLEN], *s;
+ char *cp, homedir[MAXPATHLEN], *s;
int dumbterm;
char *src_addr = NULL;
@@ -94,9 +92,9 @@ main(argc, argv)
gateport = NULL;
cp = getenv("FTPSERVERPORT");
if (cp != NULL)
- gateport = cp;
+ asprintf(&gateport, "%s", cp);
if (!gateport)
- gateport = "ftpgate";
+ asprintf(&gateport, "ftpgate");
doglob = 1;
interactive = 1;
autologin = 1;
@@ -234,7 +232,6 @@ main(argc, argv)
if (dobind) {
struct addrinfo hints;
struct addrinfo *res;
- char *ftpdataport = "ftp-data";
int error;
memset(&hints, 0, sizeof(hints));
OpenPOWER on IntegriCloud