aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorJohn Polstra <jdp@FreeBSD.org>1997-11-18 15:23:23 +0000
committerJohn Polstra <jdp@FreeBSD.org>1997-11-18 15:23:23 +0000
commitb0c9a86d123c2bd4961e2c6047cabc0c5ddff068 (patch)
tree404235702db2c5f81efabf72f91a3a1cff8adf1d /usr.bin
parentd44c88d932bcf55a819c16629d7e36e10e649d0e (diff)
Notes
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/printf/printf.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.bin/printf/printf.c b/usr.bin/printf/printf.c
index 71fb2cbc722f..25acd157bacb 100644
--- a/usr.bin/printf/printf.c
+++ b/usr.bin/printf/printf.c
@@ -136,7 +136,8 @@ next: for (start = fmt;; ++fmt) {
if (!*fmt) {
/* avoid infinite loop */
if (end == 1) {
- warnx("missing format character");
+ warnx("missing format character",
+ NULL, NULL);
return (1);
}
end = 1;
@@ -185,7 +186,7 @@ next: for (start = fmt;; ++fmt) {
} else
precision = 0;
if (!*fmt) {
- warnx("missing format character");
+ warnx("missing format character", NULL, NULL);
return (1);
}
@@ -226,7 +227,7 @@ next: for (start = fmt;; ++fmt) {
break;
}
default:
- warnx("illegal format character %c", convch);
+ warnx("illegal format character %c", convch, NULL);
return (1);
}
*fmt = nextch;
@@ -359,7 +360,7 @@ getlong(lp)
errno = 0;
val = strtol(*gargv, &ep, 0);
if (*ep != '\0') {
- warnx("%s: illegal number", *gargv);
+ warnx("%s: illegal number", *gargv, NULL);
return (1);
}
if (errno == ERANGE)