rename getline -> ftpd_getline

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6160 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1999-05-08 02:22:57 +00:00
parent 7fb35ff530
commit f88e911ef5
2 changed files with 4 additions and 4 deletions

View File

@@ -985,10 +985,10 @@ lookup(struct tab *p, char *cmd)
} }
/* /*
* getline - a hacked up version of fgets to ignore TELNET escape codes. * ftpd_getline - a hacked up version of fgets to ignore TELNET escape codes.
*/ */
char * char *
getline(char *s, int n) ftpd_getline(char *s, int n)
{ {
int c; int c;
char *cs; char *cs;
@@ -1089,7 +1089,7 @@ yylex(void)
case CMD: case CMD:
signal(SIGALRM, toolong); signal(SIGALRM, toolong);
alarm((unsigned) ftpd_timeout); alarm((unsigned) ftpd_timeout);
if (getline(cbuf, sizeof(cbuf)-1) == NULL) { if (ftpd_getline(cbuf, sizeof(cbuf)-1) == NULL) {
reply(221, "You could at least say goodbye."); reply(221, "You could at least say goodbye.");
dologout(0); dologout(0);
} }

View File

@@ -1736,7 +1736,7 @@ myoob(int signo)
#if 0 #if 0
cp = tmpline; cp = tmpline;
if (getline(cp, 7) == NULL) { if (ftpd_getline(cp, 7) == NULL) {
reply(221, "You could at least say goodbye."); reply(221, "You could at least say goodbye.");
dologout(0); dologout(0);
} }