summaryrefslogtreecommitdiff
path: root/sbin/dhclient/parse.c
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2004-05-04 22:23:02 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2004-05-04 22:23:02 +0000
commit710c64d18789eb25fed232f87c40158bfcba7ad3 (patch)
tree34e7475a305623fa6743ed9ec5dd367dddc4eeee /sbin/dhclient/parse.c
parent5ec5305e22fc4dfccfa05a507821188925c211f7 (diff)
do not overload libc function names causing linker troubles
Diffstat (limited to 'sbin/dhclient/parse.c')
-rw-r--r--sbin/dhclient/parse.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/sbin/dhclient/parse.c b/sbin/dhclient/parse.c
index 21a2116d8e2..1c7bd2f1152 100644
--- a/sbin/dhclient/parse.c
+++ b/sbin/dhclient/parse.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.c,v 1.9 2004/05/04 21:48:16 deraadt Exp $ */
+/* $OpenBSD: parse.c,v 1.10 2004/05/04 22:23:01 mickey Exp $ */
/* Common parser code for dhcpd and dhclient. */
@@ -352,11 +352,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;
}
@@ -370,15 +370,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;
}
@@ -396,7 +396,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
@@ -411,7 +411,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;
}
}