summaryrefslogtreecommitdiff
path: root/usr.sbin/ospf6d/parse.y
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/ospf6d/parse.y')
-rw-r--r--usr.sbin/ospf6d/parse.y10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/ospf6d/parse.y b/usr.sbin/ospf6d/parse.y
index 833bb72cc0b..32b1492a63f 100644
--- a/usr.sbin/ospf6d/parse.y
+++ b/usr.sbin/ospf6d/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.34 2018/07/09 12:05:11 krw Exp $ */
+/* $OpenBSD: parse.y,v 1.35 2018/07/11 07:39:22 krw Exp $ */
/*
* Copyright (c) 2004, 2005 Esben Norby <norby@openbsd.org>
@@ -677,7 +677,7 @@ lungetc(int c)
if (file->ungetpos >= file->ungetsize) {
void *p = reallocarray(file->ungetbuf, file->ungetsize, 2);
if (p == NULL)
- err(1, "lungetc");
+ err(1, "%s", __func__);
file->ungetbuf = p;
file->ungetsize *= 2;
}
@@ -786,7 +786,7 @@ top:
}
yylval.v.string = strdup(buf);
if (yylval.v.string == NULL)
- err(1, "yylex: strdup");
+ err(1, "%s", __func__);
return (STRING);
}
@@ -844,7 +844,7 @@ nodigits:
*p = '\0';
if ((token = lookup(buf)) == STRING)
if ((yylval.v.string = strdup(buf)) == NULL)
- err(1, "yylex: strdup");
+ err(1, "%s", __func__);
return (token);
}
if (c == '\n') {
@@ -1171,7 +1171,7 @@ prefix(const char *s, struct in6_addr *addr, u_int8_t *plen)
errx(1, "invalid netmask: %s", errstr);
if ((ps = malloc(strlen(s) - strlen(p) + 1)) == NULL)
- err(1, "parse_prefix: malloc");
+ err(1, "%s", __func__);
strlcpy(ps, s, strlen(s) - strlen(p) + 1);
if (host(ps, addr) == 0) {