Make number(6) build with WARNS=6.
This commit is contained in:
parent
b6d632e4e8
commit
2e76e4c9b5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=198021
@ -4,4 +4,6 @@
|
||||
PROG= number
|
||||
MAN= number.6
|
||||
|
||||
WARNS?= 6
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -88,9 +88,7 @@ void usage(void);
|
||||
int lflag;
|
||||
|
||||
int
|
||||
main(argc, argv)
|
||||
int argc;
|
||||
char *argv[];
|
||||
main(int argc, char *argv[])
|
||||
{
|
||||
int ch, first;
|
||||
char line[256];
|
||||
@ -275,7 +273,7 @@ void
|
||||
pfract(len)
|
||||
int len;
|
||||
{
|
||||
static char *pref[] = { "", "ten-", "hundred-" };
|
||||
static char const * const pref[] = { "", "ten-", "hundred-" };
|
||||
|
||||
switch(len) {
|
||||
case 1:
|
||||
|
Loading…
Reference in New Issue
Block a user