Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-4]: src/sbin/route Pull up revision 1.46 (requested by bad):
details: https://anonhg.NetBSD.org/src/rev/025f849d8d06
branches: netbsd-1-4
changeset: 471311:025f849d8d06
user: he <he%NetBSD.org@localhost>
date: Mon Jan 14 14:41:31 2002 +0000
description:
Pull up revision 1.46 (requested by bad):
Fix problem where an output message would be stuck in stdio buffers
until the next one arrived.
diffstat:
sbin/route/route.c | 26 +++++++++++++-------------
1 files changed, 13 insertions(+), 13 deletions(-)
diffs (47 lines):
diff -r c65a08cf232e -r 025f849d8d06 sbin/route/route.c
--- a/sbin/route/route.c Mon Jan 14 14:33:26 2002 +0000
+++ b/sbin/route/route.c Mon Jan 14 14:41:31 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: route.c,v 1.30 1998/10/23 05:36:42 lukem Exp $ */
+/* $NetBSD: route.c,v 1.30.2.1 2002/01/14 14:41:31 he Exp $ */
/*
* Copyright (c) 1983, 1989, 1991, 1993
@@ -43,7 +43,7 @@
#if 0
static char sccsid[] = "@(#)route.c 8.6 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: route.c,v 1.30 1998/10/23 05:36:42 lukem Exp $");
+__RCSID("$NetBSD: route.c,v 1.30.2.1 2002/01/14 14:41:31 he Exp $");
#endif
#endif /* not lint */
@@ -1414,17 +1414,17 @@
struct sockaddr *sa;
int i;
- if (addrs == 0)
- return;
- (void) printf("\nsockaddrs: ");
- bprintf(stdout, addrs, addrnames);
- (void) putchar('\n');
- for (i = 1; i; i <<= 1)
- if (i & addrs) {
- sa = (struct sockaddr *)cp;
- (void) printf(" %s", routename(sa));
- ADVANCE(cp, sa);
- }
+ if (addrs != 0) {
+ (void) printf("\nsockaddrs: ");
+ bprintf(stdout, addrs, addrnames);
+ (void) putchar('\n');
+ for (i = 1; i; i <<= 1)
+ if (i & addrs) {
+ sa = (struct sockaddr *)cp;
+ (void) printf(" %s", routename(sa));
+ ADVANCE(cp, sa);
+ }
+ }
(void) putchar('\n');
(void) fflush(stdout);
}
Home |
Main Index |
Thread Index |
Old Index