Fix warnings to not append "No error: 0".
MFC after: 1 month Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
9b76499a0b
commit
c6919e7fdc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=258659
@ -201,7 +201,7 @@ parse(const char *string, int lineno)
|
|||||||
|
|
||||||
cp = buf;
|
cp = buf;
|
||||||
if (snprintf(buf, BUFSIZ, "%s", string) >= BUFSIZ) {
|
if (snprintf(buf, BUFSIZ, "%s", string) >= BUFSIZ) {
|
||||||
warn("oid too long: '%s'%s", string, line);
|
warnx("oid too long: '%s'%s", string, line);
|
||||||
return (1);
|
return (1);
|
||||||
}
|
}
|
||||||
bufp = strsep(&cp, "=:");
|
bufp = strsep(&cp, "=:");
|
||||||
@ -260,7 +260,7 @@ parse(const char *string, int lineno)
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ((kind & CTLTYPE) == CTLTYPE_NODE) {
|
if ((kind & CTLTYPE) == CTLTYPE_NODE) {
|
||||||
warn("oid '%s' isn't a leaf node%s", bufp, line);
|
warnx("oid '%s' isn't a leaf node%s", bufp, line);
|
||||||
return (1);
|
return (1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user