Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/finger fix format



details:   https://anonhg.NetBSD.org/src/rev/cc9f8ff075b3
branches:  trunk
changeset: 811907:cc9f8ff075b3
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Nov 21 15:22:17 2015 +0000

description:
fix format

diffstat:

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

diffs (27 lines):

diff -r 262f1ef780be -r cc9f8ff075b3 usr.bin/finger/sprint.c
--- a/usr.bin/finger/sprint.c   Sat Nov 21 15:01:43 2015 +0000
+++ b/usr.bin/finger/sprint.c   Sat Nov 21 15:22:17 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sprint.c,v 1.17 2006/01/04 01:17:54 perry Exp $        */
+/*     $NetBSD: sprint.c,v 1.18 2015/11/21 15:22:17 christos Exp $     */
 
 /*
  * Copyright (c) 1989, 1993
@@ -37,7 +37,7 @@
 #if 0
 static char sccsid[] = "@(#)sprint.c   8.3 (Berkeley) 4/28/95";
 #else
-__RCSID("$NetBSD: sprint.c,v 1.17 2006/01/04 01:17:54 perry Exp $");
+__RCSID("$NetBSD: sprint.c,v 1.18 2015/11/21 15:22:17 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -92,7 +92,7 @@
         *              office phone
         */
 #define        MAXREALNAME     18
-       (void)printf("%-*s %-*s %s %s\n", maxname, "Login", MAXREALNAME,
+       (void)printf("%-*s %-*s %s %s\n", (int)maxname, "Login", MAXREALNAME,
            "Name", " Tty      Idle  Login Time  ", (gflag) ? "" :
            (oflag) ? "Office     Office Phone" : "Where");
 



Home | Main Index | Thread Index | Old Index