Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/fstat apply some (uintptr_t) so that printing printe...
details: https://anonhg.NetBSD.org/src/rev/2e10b56dc376
branches: trunk
changeset: 769783:2e10b56dc376
user: mrg <mrg%NetBSD.org@localhost>
date: Fri Sep 23 07:31:39 2011 +0000
description:
apply some (uintptr_t) so that printing printers works on i386 (likely
all 32 bit.)
diffstat:
usr.bin/fstat/fstat.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (35 lines):
diff -r 8f2bf9d0caf4 -r 2e10b56dc376 usr.bin/fstat/fstat.c
--- a/usr.bin/fstat/fstat.c Fri Sep 23 07:12:10 2011 +0000
+++ b/usr.bin/fstat/fstat.c Fri Sep 23 07:31:39 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fstat.c,v 1.93 2011/09/22 17:27:50 christos Exp $ */
+/* $NetBSD: fstat.c,v 1.94 2011/09/23 07:31:39 mrg 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.93 2011/09/22 17:27:50 christos Exp $");
+__RCSID("$NetBSD: fstat.c,v 1.94 2011/09/23 07:31:39 mrg Exp $");
#endif
#endif /* not lint */
@@ -1032,14 +1032,14 @@
default:
/* print protocol number and socket address */
snprintf(fbuf, sizeof(fbuf), " %d %jx", proto.pr_protocol,
- (uintmax_t)sock);
+ (uintmax_t)(uintptr_t)sock);
break;
}
if (fbuf[0] || lbuf[0])
printf(" %s%s%s", fbuf, (fbuf[0] && lbuf[0]) ? " <-> " : "",
lbuf);
else if (so.so_pcb)
- printf(" %jx", (uintmax_t)so.so_pcb);
+ printf(" %jx", (uintmax_t)(uintptr_t)so.so_pcb);
(void)printf("\n");
return;
bad:
Home |
Main Index |
Thread Index |
Old Index