summaryrefslogtreecommitdiffstats
path: root/usr.sbin/dhcpd/parse.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2004-09-16 18:35:42 +0000
committerderaadt <deraadt@openbsd.org>2004-09-16 18:35:42 +0000
commit0795b38919d5e1a9797bb5628fbd00cbe8824b7d (patch)
treef73c46995a06a83b0a5501f0a8a7c9b62bdb339d /usr.sbin/dhcpd/parse.c
parentftruncate() with ftello() instead of ftell(); ok millert (diff)
downloadwireguard-openbsd-0795b38919d5e1a9797bb5628fbd00cbe8824b7d.tar.xz
wireguard-openbsd-0795b38919d5e1a9797bb5628fbd00cbe8824b7d.zip
avoid aliasing with libc functions; ok henning
Diffstat (limited to 'usr.sbin/dhcpd/parse.c')
-rw-r--r--usr.sbin/dhcpd/parse.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/usr.sbin/dhcpd/parse.c b/usr.sbin/dhcpd/parse.c
index d02f1f1fb08..3dc693835e8 100644
--- a/usr.sbin/dhcpd/parse.c
+++ b/usr.sbin/dhcpd/parse.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.c,v 1.6 2004/05/04 20:28:40 deraadt Exp $ */
+/* $OpenBSD: parse.c,v 1.7 2004/09/16 18:35:43 deraadt Exp $ */
/* Common parser code for dhcpd and dhclient. */
@@ -393,11 +393,11 @@ convert_num(unsigned char *buf, char *str, int base, int size)
else if (tval >= '0')
tval -= '0';
else {
- warn("Bogus number: %s.", str);
+ warning("Bogus number: %s.", str);
break;
}
if (tval >= base) {
- warn("Bogus number: %s: digit %d not in base %d",
+ warning("Bogus number: %s: digit %d not in base %d",
str, tval, base);
break;
}
@@ -411,15 +411,15 @@ convert_num(unsigned char *buf, char *str, int base, int size)
if (val > max) {
switch (base) {
case 8:
- warn("value %s%o exceeds max (%d) for precision.",
+ warning("value %s%o exceeds max (%d) for precision.",
negative ? "-" : "", val, max);
break;
case 16:
- warn("value %s%x exceeds max (%d) for precision.",
+ warning("value %s%x exceeds max (%d) for precision.",
negative ? "-" : "", val, max);
break;
default:
- warn("value %s%u exceeds max (%d) for precision.",
+ warning("value %s%u exceeds max (%d) for precision.",
negative ? "-" : "", val, max);
break;
}
@@ -436,7 +436,7 @@ convert_num(unsigned char *buf, char *str, int base, int size)
putLong(buf, -(unsigned long)val);
break;
default:
- warn("Unexpected integer size: %d", size);
+ warning("Unexpected integer size: %d", size);
break;
}
} else {
@@ -451,7 +451,7 @@ convert_num(unsigned char *buf, char *str, int base, int size)
putULong(buf, val);
break;
default:
- warn("Unexpected integer size: %d", size);
+ warning("Unexpected integer size: %d", size);
break;
}
}