diff options
| -rw-r--r-- | usr.sbin/pkg_install/lib/file.c | 4 | ||||
| -rw-r--r-- | usr.sbin/pkg_install/lib/ftp.c | 11 |
2 files changed, 6 insertions, 9 deletions
diff --git a/usr.sbin/pkg_install/lib/file.c b/usr.sbin/pkg_install/lib/file.c index 21f40e48be90..70307de72f19 100644 --- a/usr.sbin/pkg_install/lib/file.c +++ b/usr.sbin/pkg_install/lib/file.c @@ -1,5 +1,5 @@ #ifndef lint -static const char *rcsid = "$Id: file.c,v 1.13 1995/07/30 09:33:26 jkh Exp $"; +static const char *rcsid = "$Id: file.c,v 1.14 1995/07/30 09:41:21 jkh Exp $"; #endif /* @@ -239,7 +239,7 @@ fileGetURL(char *fname) } while (read(fd, &ch, 1) == 1) write(fd, &ch, 1); - FtpEof(ftp); + FtpEOF(ftp); FtpClose(ftp); return tmpl; } diff --git a/usr.sbin/pkg_install/lib/ftp.c b/usr.sbin/pkg_install/lib/ftp.c index 192d4b7cad1d..7b78ee4c9754 100644 --- a/usr.sbin/pkg_install/lib/ftp.c +++ b/usr.sbin/pkg_install/lib/ftp.c @@ -6,7 +6,7 @@ * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp * ---------------------------------------------------------------------------- * - * $Id: ftp.c,v 1.1 1995/07/30 09:33:29 jkh Exp $ + * $Id: ftp.c,v 1.2 1995/07/31 02:27:58 jkh Exp $ * * Return values have been sanitized: * -1 error, but you (still) have a session. @@ -112,8 +112,7 @@ zap(FTP_t ftp) int i; i = writes(ftp->fd_ctrl,"QUIT\r\n"); - if (isDebug()) - msgDebug("Zapping ftp connection on %d returns %d\n", ftp->fd_ctrl, i); + debug(ftp, "Zapping ftp connection on %d returns %d\n", ftp->fd_ctrl, i); close(ftp->fd_ctrl); ftp->fd_ctrl = -1; close(ftp->fd_xfer); ftp->fd_xfer = -1; ftp->state = init; @@ -323,8 +322,7 @@ FtpGet(FTP_t ftp, char *file) return zap(ftp); } else if (i > 299) { - if (isDebug()) - msgDebug("FTP: No such file %s, moving on.\n", file); + debug(ftp, "FTP: No such file %s, moving on.\n", file); close(s); return -1; } @@ -362,8 +360,7 @@ FtpGet(FTP_t ftp, char *file) return zap(ftp); } else if (i > 299) { - if (isDebug()) - msgDebug("FTP: No such file %s, moving on.\n", file); + debug(ftp, "FTP: No such file %s, moving on.\n", file); close(s); return -1; } |
