Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/ftp * in the SIGINFO/SIGQUIT handler, print a newlin...



details:   https://anonhg.NetBSD.org/src/rev/81b01588cdc8
branches:  trunk
changeset: 477112:81b01588cdc8
user:      lukem <lukem%NetBSD.org@localhost>
date:      Mon Oct 11 12:35:42 1999 +0000

description:
* in the SIGINFO/SIGQUIT handler, print a newline before displaying
  the xfer stats
* crankrate() should have a K&R decl (for consistency)

diffstat:

 usr.bin/ftp/util.c |  11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diffs (40 lines):

diff -r 0c7d9f5956c5 -r 81b01588cdc8 usr.bin/ftp/util.c
--- a/usr.bin/ftp/util.c        Mon Oct 11 12:34:17 1999 +0000
+++ b/usr.bin/ftp/util.c        Mon Oct 11 12:35:42 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: util.c,v 1.75 1999/10/09 03:00:56 lukem Exp $  */
+/*     $NetBSD: util.c,v 1.76 1999/10/11 12:35:42 lukem Exp $  */
 
 /*-
  * Copyright (c) 1997-1999 The NetBSD Foundation, Inc.
@@ -75,7 +75,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: util.c,v 1.75 1999/10/09 03:00:56 lukem Exp $");
+__RCSID("$NetBSD: util.c,v 1.76 1999/10/11 12:35:42 lukem Exp $");
 #endif /* not lint */
 
 /*
@@ -909,8 +909,10 @@
 {
        int oerrno = errno;
 
-       if (bytes > 0)
+       if (bytes > 0) {
+               write(fileno(ttyout), "\n", 1);
                ptransfer(1);
+       }
        errno = oerrno;
 }
 
@@ -978,7 +980,8 @@
  * Change the rate limit up (SIGUSR1) or down (SIGUSR2)
  */
 void
-crankrate(int sig)
+crankrate(sig)
+       int sig;
 {
 
        switch (sig) {



Home | Main Index | Thread Index | Old Index