SCCS-vsn: libexec/ftpd/ftpd.c 4.14
-static char sccsid[] = "@(#)ftpd.c 4.13 (Berkeley) %G%";
+static char sccsid[] = "@(#)ftpd.c 4.14 (Berkeley) %G%";
FILE *instr, *outstr;
{
register int c;
FILE *instr, *outstr;
{
register int c;
- int cr, escape, eof;
- int netfd, filefd, cnt;
+ int cr, escape, eof, cnt;
case TYPE_I:
case TYPE_L:
case TYPE_I:
case TYPE_L:
- netfd = fileno(instr);
- netfd = fileno(outstr);
- while ((cnt = read(netfd, buf, sizeof buf)) > 0)
- if (write(filefd, buf, cnt) < 0)
+ while ((cnt = read(fileno(instr), buf, sizeof buf)) > 0)
+ if (write(fileno(outstr), buf, cnt) < 0)
return (1);
return (cnt < 0);
return (1);
return (cnt < 0);