From 9160dcee949ec8bc75d3fcef49b1f24bb134d3fe Mon Sep 17 00:00:00 2001 From: christos Date: Wed, 20 May 1998 00:54:52 +0000 Subject: [PATCH] - add since we are using signals. - add since we are using utimes - don't require quad_t to exist to compile. --- usr.bin/ftp/ftp.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/usr.bin/ftp/ftp.c b/usr.bin/ftp/ftp.c index ebc91c9b3cfd..1c2c61f61332 100644 --- a/usr.bin/ftp/ftp.c +++ b/usr.bin/ftp/ftp.c @@ -1,4 +1,4 @@ -/* $NetBSD: ftp.c,v 1.32 1998/04/01 21:07:03 kleink Exp $ */ +/* $NetBSD: ftp.c,v 1.33 1998/05/20 00:54:52 christos Exp $ */ /* * Copyright (c) 1985, 1989, 1993, 1994 @@ -38,13 +38,14 @@ #if 0 static char sccsid[] = "@(#)ftp.c 8.6 (Berkeley) 10/27/94"; #else -__RCSID("$NetBSD: ftp.c,v 1.32 1998/04/01 21:07:03 kleink Exp $"); +__RCSID("$NetBSD: ftp.c,v 1.33 1998/05/20 00:54:52 christos Exp $"); #endif #endif /* not lint */ #include #include #include +#include #include #include @@ -57,6 +58,7 @@ __RCSID("$NetBSD: ftp.c,v 1.32 1998/04/01 21:07:03 kleink Exp $"); #include #include #include +#include #include #include #include @@ -540,7 +542,11 @@ sendrequest(cmd, local, remote, printnames) (*closefunc)(fin); goto cleanupsend; } +#ifndef NO_QUAD if (command("REST %qd", (long long) restart_point) != +#else + if (command("REST %ld", (long) restart_point) != +#endif CONTINUE) { if (closefunc != NULL) (*closefunc)(fin); @@ -833,7 +839,11 @@ recvrequest(cmd, local, remote, lmode, printnames, ignorespecial) if (setjmp(recvabort)) goto abort; if (is_retr && restart_point && +#ifndef NO_QUAD command("REST %qd", (long long) restart_point) != CONTINUE) +#else + command("REST %ld", (long) restart_point) != CONTINUE) +#endif return; if (remote) { if (command("%s %s", cmd, remote) != PRELIM) {