From d1ecde2bbbcd377a8630bb28bafd3287c77bec70 Mon Sep 17 00:00:00 2001 From: John Birrell Date: Sun, 22 Mar 1998 20:19:27 +0000 Subject: [PATCH] Cast an argument to int for a printf field width the way that gcc prefers it. This source is compiled with -Werror so the slightest warning is enough to ruin my day. --- usr.sbin/lpr/lpc/lpc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/lpr/lpc/lpc.c b/usr.sbin/lpr/lpc/lpc.c index 9a9b986cbf9..af723701ac0 100644 --- a/usr.sbin/lpr/lpc/lpc.c +++ b/usr.sbin/lpr/lpc/lpc.c @@ -43,7 +43,7 @@ static const char copyright[] = static char sccsid[] = "@(#)lpc.c 8.3 (Berkeley) 4/28/95"; #endif static const char rcsid[] = - "$Id: lpc.c,v 1.5 1997/09/24 06:47:46 charnier Exp $"; + "$Id: lpc.c,v 1.6 1997/12/02 20:45:43 wollman Exp $"; #endif /* not lint */ #include @@ -296,7 +296,7 @@ help(argc, argv) else if (c == (struct cmd *)0) printf("?Invalid help command %s\n", arg); else - printf("%-*s\t%s\n", HELPINDENT, + printf("%-*s\t%s\n", (int) HELPINDENT, c->c_name, c->c_help); } }