summaryrefslogtreecommitdiff
path: root/usr.sbin/dhcpd/parse.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2004-09-16 18:35:44 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2004-09-16 18:35:44 +0000
commite079edd2e9335fd24f8f6b8a69a82f9abdcf8332 (patch)
treeb94b092ed2307c805328cd2bf70b3c136f0ad696 /usr.sbin/dhcpd/parse.c
parenta91fce241ec0acb77eeb44fdb6a2c82f6498e116 (diff)
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;
}
}