Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/rwho The nusers variable is actually a size_t, so pr...



details:   https://anonhg.NetBSD.org/src/rev/3d5f107cb5de
branches:  trunk
changeset: 584794:3d5f107cb5de
user:      he <he%NetBSD.org@localhost>
date:      Sat Oct 01 13:33:21 2005 +0000

description:
The nusers variable is actually a size_t, so print with %zd, not %d.

diffstat:

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

diffs (27 lines):

diff -r fb3418484d06 -r 3d5f107cb5de usr.bin/rwho/rwho.c
--- a/usr.bin/rwho/rwho.c       Sat Oct 01 10:29:32 2005 +0000
+++ b/usr.bin/rwho/rwho.c       Sat Oct 01 13:33:21 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rwho.c,v 1.15 2005/09/30 17:58:24 christos Exp $       */
+/*     $NetBSD: rwho.c,v 1.16 2005/10/01 13:33:21 he Exp $     */
 
 /*
  * Copyright (c) 1983, 1993
@@ -37,7 +37,7 @@
 
 #ifndef lint
 /*static char sccsid[] = "from: @(#)rwho.c     8.1 (Berkeley) 6/6/93";*/
-__RCSID("$NetBSD: rwho.c,v 1.15 2005/09/30 17:58:24 christos Exp $");
+__RCSID("$NetBSD: rwho.c,v 1.16 2005/10/01 13:33:21 he Exp $");
 #endif /* not lint */
 
 #include <sys/param.h>
@@ -221,7 +221,7 @@
        }
 
        if (qflg)
-               (void)printf("# users = %d\n", nusers);
+               (void)printf("# users = %zd\n", nusers);
 
        return EX_OK;
 }



Home | Main Index | Thread Index | Old Index