diff options
author | Mark Murray <markm@FreeBSD.org> | 2001-04-28 07:55:19 +0000 |
---|---|---|
committer | Mark Murray <markm@FreeBSD.org> | 2001-04-28 07:55:19 +0000 |
commit | 618b0bba1feda5797cf464d890a4f3ae703ff6e1 (patch) | |
tree | d691fd876b5cc8f1616a5442b121425fdc2810ec /libexec/ftpd/ftpd.c | |
parent | f9ebf4c2b5faf2f9907f5a17cb8993b717314fad (diff) | |
download | src-618b0bba1feda5797cf464d890a4f3ae703ff6e1.tar.gz src-618b0bba1feda5797cf464d890a4f3ae703ff6e1.zip |
Change names of functions and variables with global scope that are
in conflict with library values of the same name. This allows static
linking.
Notes
Notes:
svn path=/head/; revision=76096
Diffstat (limited to 'libexec/ftpd/ftpd.c')
-rw-r--r-- | libexec/ftpd/ftpd.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c index c7a74ee8e522..cfa1a43b4c50 100644 --- a/libexec/ftpd/ftpd.c +++ b/libexec/ftpd/ftpd.c @@ -131,7 +131,7 @@ int data; jmp_buf errcatch, urgcatch; int logged_in; struct passwd *pw; -int debug; +int ftpdebug; int timeout = 900; /* timeout after 15 minutes of inactivity */ int maxtimeout = 7200;/* don't allow idle time to be set beyond 2 hours */ int logging; @@ -307,7 +307,7 @@ main(argc, argv, envp) break; case 'd': - debug++; + ftpdebug++; break; case 'E': @@ -370,7 +370,7 @@ main(argc, argv, envp) break; case 'v': - debug = 1; + ftpdebug = 1; break; case '4': @@ -597,7 +597,7 @@ main(argc, argv, envp) } #ifndef VIRTUAL_HOSTING if ((hostname = malloc(MAXHOSTNAMELEN)) == NULL) - fatal("Ran out of memory."); + fatalerror("Ran out of memory."); (void) gethostname(hostname, MAXHOSTNAMELEN - 1); hostname[MAXHOSTNAMELEN - 1] = '\0'; #endif @@ -613,7 +613,7 @@ lostconn(signo) int signo; { - if (debug) + if (ftpdebug) syslog(LOG_DEBUG, "lost connection"); dologout(1); } @@ -639,7 +639,7 @@ inithosts() line[0] = '\0'; if ((hrp = malloc(sizeof(struct ftphost))) == NULL || (hrp->hostname = strdup(line)) == NULL) - fatal("Ran out of memory."); + fatalerror("Ran out of memory."); hrp->hostinfo = NULL; memset(&hints, 0, sizeof(hints)); @@ -1391,7 +1391,7 @@ skip: free(ident); ident = strdup(passwd); if (ident == NULL) - fatal("Ran out of memory."); + fatalerror("Ran out of memory."); reply(230, "Guest login ok, access restrictions apply."); #ifdef SETPROCTITLE @@ -2095,7 +2095,7 @@ epsvonly:; } void -fatal(s) +fatalerror(s) char *s; { @@ -2125,7 +2125,7 @@ reply(n, fmt, va_alist) (void)vprintf(fmt, ap); (void)printf("\r\n"); (void)fflush(stdout); - if (debug) { + if (ftpdebug) { syslog(LOG_DEBUG, "<--- %d ", n); vsyslog(LOG_DEBUG, fmt, ap); } @@ -2151,7 +2151,7 @@ lreply(n, fmt, va_alist) (void)vprintf(fmt, ap); (void)printf("\r\n"); (void)fflush(stdout); - if (debug) { + if (ftpdebug) { syslog(LOG_DEBUG, "<--- %d- ", n); vsyslog(LOG_DEBUG, fmt, ap); } |