diff options
author | jkh <jkh@FreeBSD.org> | 1995-07-31 02:27:58 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1995-07-31 02:27:58 +0000 |
commit | adb6e33f4eee5a15c79ff2dafc89b0fe68b12b4c (patch) | |
tree | ed4eacbddcf74687abd2913fef0e6be21aaa1813 /usr.sbin/pkg_install/lib | |
parent | a33d87a3201bc79b82e931908a5c3df42f7a1961 (diff) | |
download | FreeBSD-src-adb6e33f4eee5a15c79ff2dafc89b0fe68b12b4c.zip FreeBSD-src-adb6e33f4eee5a15c79ff2dafc89b0fe68b12b4c.tar.gz |
Remove dependency on sysinstall.
Diffstat (limited to 'usr.sbin/pkg_install/lib')
-rw-r--r-- | usr.sbin/pkg_install/lib/ftp.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/usr.sbin/pkg_install/lib/ftp.c b/usr.sbin/pkg_install/lib/ftp.c index 99c34d4..192d4b7 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.14 1995/06/11 19:29:55 rgrimes Exp $ + * $Id: ftp.c,v 1.1 1995/07/30 09:33:29 jkh Exp $ * * Return values have been sanitized: * -1 error, but you (still) have a session. @@ -34,27 +34,16 @@ /* Handy global for us to stick the port # */ int FtpPort; -#ifndef STANDALONE_FTP -#include "sysinstall.h" -#endif /*STANDALONE_FTP*/ - static void debug(FTP_t ftp, const char *fmt, ...) { char p[BUFSIZ]; va_list ap; va_start(ap, fmt); -#ifdef STANDALONE_FTP strcpy(p,"LIBFTP: "); (void) vsnprintf(p+strlen(p), sizeof p - strlen(p), fmt, ap); va_end(ap); write(ftp->fd_debug,p,strlen(p)); -#else - if (isDebug()) { - (void) vsnprintf(p, sizeof p - strlen(p), fmt, ap); - msgDebug(p); - } -#endif } static int @@ -173,13 +162,11 @@ FtpInit() return ftp; } -#ifdef STANDALONE_FTP void FtpDebug(FTP_t ftp, int i) { ftp->fd_debug = i; } -#endif int FtpOpen(FTP_t ftp, char *host, char *user, char *passwd) |