1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-17 15:27:36 +00:00

Remove dependency on sysinstall.

This commit is contained in:
Jordan K. Hubbard 1995-07-31 02:27:58 +00:00
parent 103ccee575
commit d5285ad858
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=9807

View File

@ -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)