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:
@@ -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 *
|
||||
getline(char *s, int n)
|
||||
ftpd_getline(char *s, int n)
|
||||
{
|
||||
int c;
|
||||
char *cs;
|
||||
@@ -1089,7 +1089,7 @@ yylex(void)
|
||||
case CMD:
|
||||
signal(SIGALRM, toolong);
|
||||
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.");
|
||||
dologout(0);
|
||||
}
|
||||
|
@@ -1736,7 +1736,7 @@ myoob(int signo)
|
||||
|
||||
#if 0
|
||||
cp = tmpline;
|
||||
if (getline(cp, 7) == NULL) {
|
||||
if (ftpd_getline(cp, 7) == NULL) {
|
||||
reply(221, "You could at least say goodbye.");
|
||||
dologout(0);
|
||||
}
|
||||
|
Reference in New Issue
Block a user