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.
This commit is contained in:
parent
4f0591349b
commit
d1ecde2bbb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=34784
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user