Jeez! Delete hard-coded vt100 sequences. This could be done using termcap,

but why bother?
This commit is contained in:
christos 2002-10-17 03:34:20 +00:00
parent 590fa669c8
commit d5d6fac25a

View File

@ -1,8 +1,8 @@
/* $NetBSD: ftpio.c,v 1.43 2002/10/17 03:31:35 christos Exp $ */
/* $NetBSD: ftpio.c,v 1.44 2002/10/17 03:34:20 christos Exp $ */
#include <sys/cdefs.h>
#ifndef lint
__RCSID("$NetBSD: ftpio.c,v 1.43 2002/10/17 03:31:35 christos Exp $");
__RCSID("$NetBSD: ftpio.c,v 1.44 2002/10/17 03:34:20 christos Exp $");
#endif
/*
@ -219,14 +219,11 @@ expect(int fd, const char *str, int *ftprc)
int
ftp_cmd(const char *cmd, const char *expectstr)
{
int rc=0, verbose_ftp=0;
int rc=0;
int len;
if (Verbose)
verbose_ftp=1;
if (verbose_ftp)
fprintf(stderr, "\nftp> %s", cmd);
if (Verboase)
fprintf(stderr, "\nftp> %s", cmd);
fflush(stdout);
len = write(ftpio.command, cmd, strlen(cmd));
@ -304,7 +301,7 @@ setupCoproc(const char *base)
setbuf(stdout, NULL);
if (Verbose)
fprintf(stderr, "ftp -detv %s\n", base);
fprintf(stderr, "ftp -detv %s\n", base);
rc1 = execlp(FTP_CMD, argv0, "-detv", base, NULL);
warn("setupCoproc: execlp() failed");
exit(1);