Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/systat u_quad_t must be cast to (long long) to be pr...



details:   https://anonhg.NetBSD.org/src/rev/30aa97ee42a1
branches:  trunk
changeset: 485437:30aa97ee42a1
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Thu Apr 27 21:40:41 2000 +0000

description:
u_quad_t must be cast to (long long) to be printed with %llu.

diffstat:

 usr.bin/systat/ip.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 6f4e7e9a4e84 -r 30aa97ee42a1 usr.bin/systat/ip.c
--- a/usr.bin/systat/ip.c       Thu Apr 27 21:34:27 2000 +0000
+++ b/usr.bin/systat/ip.c       Thu Apr 27 21:40:41 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ip.c,v 1.5 2000/01/13 12:39:05 ad Exp $        */
+/*     $NetBSD: ip.c,v 1.6 2000/04/27 21:40:41 thorpej Exp $   */
 
 /*
  * Copyright (c) 1999 Andy Doran <ad%NetBSD.org@localhost>
@@ -29,7 +29,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: ip.c,v 1.5 2000/01/13 12:39:05 ad Exp $");
+__RCSID("$NetBSD: ip.c,v 1.6 2000/04/27 21:40:41 thorpej Exp $");
 #endif /* not lint */
 
 #include <sys/param.h>
@@ -142,7 +142,7 @@
        totalout = curstat.i.ips_forward + curstat.i.ips_localout;
 
        SHOW(i.ips_total, 0, 0);
-       mvwprintw(wnd, 0, 35, "%9llu", totalout);
+       mvwprintw(wnd, 0, 35, "%9llu", (unsigned long long)totalout);
        SHOW(i.ips_delivered, 1, 0);
        SHOW(i.ips_badsum, 2, 0);
        SHOW(i.ips_tooshort, 3, 0);



Home | Main Index | Thread Index | Old Index