diff options
author | jb <jb@FreeBSD.org> | 1998-03-22 20:19:27 +0000 |
---|---|---|
committer | jb <jb@FreeBSD.org> | 1998-03-22 20:19:27 +0000 |
commit | 57958943e6460ec5b67fb3be2927728d2bc0bc8c (patch) | |
tree | 64a3da80048dabe575b7850dec42ad9745bfe1b3 /usr.sbin/lpr/lpc/lpc.c | |
parent | 4b4f1b5abdee7b870b666c9dff4474f767cd8022 (diff) | |
download | FreeBSD-src-57958943e6460ec5b67fb3be2927728d2bc0bc8c.zip FreeBSD-src-57958943e6460ec5b67fb3be2927728d2bc0bc8c.tar.gz |
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.
Diffstat (limited to 'usr.sbin/lpr/lpc/lpc.c')
-rw-r--r-- | usr.sbin/lpr/lpc/lpc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/lpr/lpc/lpc.c b/usr.sbin/lpr/lpc/lpc.c index 9a9b986..af72370 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 <sys/param.h> @@ -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); } } |