Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-6]: src/usr.bin/fstat Pull up following revision(s) (requested by...
details: https://anonhg.NetBSD.org/src/rev/8a757fa8ad02
branches: netbsd-6
changeset: 773963:8a757fa8ad02
user: riz <riz%NetBSD.org@localhost>
date: Mon Apr 02 18:22:03 2012 +0000
description:
Pull up following revision(s) (requested by 143 in ticket #christos):
usr.bin/fstat/fstat.c: revision 1.96
byte swap the inet6 ports.
diffstat:
usr.bin/fstat/fstat.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (30 lines):
diff -r 84553ac8eff3 -r 8a757fa8ad02 usr.bin/fstat/fstat.c
--- a/usr.bin/fstat/fstat.c Sun Mar 25 11:30:36 2012 +0000
+++ b/usr.bin/fstat/fstat.c Mon Apr 02 18:22:03 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fstat.c,v 1.95 2011/10/09 21:16:00 chs Exp $ */
+/* $NetBSD: fstat.c,v 1.95.4.1 2012/04/02 18:22:03 riz Exp $ */
/*-
* Copyright (c) 1988, 1993
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)fstat.c 8.3 (Berkeley) 5/2/95";
#else
-__RCSID("$NetBSD: fstat.c,v 1.95 2011/10/09 21:16:00 chs Exp $");
+__RCSID("$NetBSD: fstat.c,v 1.95.4.1 2012/04/02 18:22:03 riz Exp $");
#endif
#endif /* not lint */
@@ -974,9 +974,9 @@
goto bad;
}
inet6_addrstr(lbuf, sizeof(lbuf), &in6pcb.in6p_laddr,
- in6pcb.in6p_lport);
+ ntohs(in6pcb.in6p_lport));
inet6_addrstr(fbuf, sizeof(fbuf), &in6pcb.in6p_faddr,
- in6pcb.in6p_fport);
+ ntohs(in6pcb.in6p_fport));
break;
default:
break;
Home |
Main Index |
Thread Index |
Old Index