Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-6]: src/usr.sbin/pkg_install/lib Pull up revision 1.44 (request...



details:   https://anonhg.NetBSD.org/src/rev/0517637df375
branches:  netbsd-1-6
changeset: 529530:0517637df375
user:      tron <tron%NetBSD.org@localhost>
date:      Sun Nov 24 22:35:07 2002 +0000

description:
Pull up revision 1.44 (requested by jschauma in ticket #1011):
Jeez! Delete hard-coded vt100 sequences. This could be done using termcap,
but why bother?

diffstat:

 usr.sbin/pkg_install/lib/ftpio.c |  15 ++++++---------
 1 files changed, 6 insertions(+), 9 deletions(-)

diffs (41 lines):

diff -r 9b930f0976a3 -r 0517637df375 usr.sbin/pkg_install/lib/ftpio.c
--- a/usr.sbin/pkg_install/lib/ftpio.c  Sun Nov 24 22:34:52 2002 +0000
+++ b/usr.sbin/pkg_install/lib/ftpio.c  Sun Nov 24 22:35:07 2002 +0000
@@ -1,8 +1,8 @@
-/*     $NetBSD: ftpio.c,v 1.35.2.6 2002/11/24 22:33:47 tron Exp $      */
+/*     $NetBSD: ftpio.c,v 1.35.2.7 2002/11/24 22:35:07 tron Exp $      */
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: ftpio.c,v 1.35.2.6 2002/11/24 22:33:47 tron Exp $");
+__RCSID("$NetBSD: ftpio.c,v 1.35.2.7 2002/11/24 22:35:07 tron Exp $");
 #endif
 
 /*
@@ -219,14 +219,11 @@
 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 @@
            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);



Home | Main Index | Thread Index | Old Index