summaryrefslogtreecommitdiff
path: root/usr.bin/printf/printf.c
diff options
context:
space:
mode:
authorJohn Polstra <jdp@FreeBSD.org>1997-11-18 05:45:19 +0000
committerJohn Polstra <jdp@FreeBSD.org>1997-11-18 05:45:19 +0000
commitc8a2e150070b8012abddeef6ae14189750dce49d (patch)
treedb74a2e1e9fd42e2e4a597f423a02da46fa9231f /usr.bin/printf/printf.c
parenteb64128d8aa01f00dcad3fdc0e519a99d3ac4bd1 (diff)
Notes
Diffstat (limited to 'usr.bin/printf/printf.c')
-rw-r--r--usr.bin/printf/printf.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/usr.bin/printf/printf.c b/usr.bin/printf/printf.c
index 25acd157bacb..71fb2cbc722f 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)