diff options
author | jdp <jdp@FreeBSD.org> | 1997-11-18 05:45:19 +0000 |
---|---|---|
committer | jdp <jdp@FreeBSD.org> | 1997-11-18 05:45:19 +0000 |
commit | c0275eb9565c14cac2c7cbaa21ffe27535865e8b (patch) | |
tree | 124ab63c51dd58ec3c57b8d66a335f9db2be8562 /usr.bin/printf | |
parent | a3a1ff9596d42f091452a815554d29be862ff376 (diff) | |
download | FreeBSD-src-c0275eb9565c14cac2c7cbaa21ffe27535865e8b.zip FreeBSD-src-c0275eb9565c14cac2c7cbaa21ffe27535865e8b.tar.gz |
Fix: too many arguments for format string in 4 calls to warnx().
Diffstat (limited to 'usr.bin/printf')
-rw-r--r-- | usr.bin/printf/printf.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/usr.bin/printf/printf.c b/usr.bin/printf/printf.c index 25acd15..71fb2cb 100644 --- a/usr.bin/printf/printf.c +++ b/usr.bin/printf/printf.c @@ -136,8 +136,7 @@ next: for (start = fmt;; ++fmt) { if (!*fmt) { /* avoid infinite loop */ if (end == 1) { - warnx("missing format character", - NULL, NULL); + warnx("missing format character"); return (1); } end = 1; @@ -186,7 +185,7 @@ next: for (start = fmt;; ++fmt) { } else precision = 0; if (!*fmt) { - warnx("missing format character", NULL, NULL); + warnx("missing format character"); return (1); } @@ -227,7 +226,7 @@ next: for (start = fmt;; ++fmt) { break; } default: - warnx("illegal format character %c", convch, NULL); + warnx("illegal format character %c", convch); return (1); } *fmt = nextch; @@ -360,7 +359,7 @@ getlong(lp) errno = 0; val = strtol(*gargv, &ep, 0); if (*ep != '\0') { - warnx("%s: illegal number", *gargv, NULL); + warnx("%s: illegal number", *gargv); return (1); } if (errno == ERANGE) |