summaryrefslogtreecommitdiffstats
path: root/usr.sbin/dhcpd/alloc.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/alloc.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/alloc.c')
-rw-r--r--usr.sbin/dhcpd/alloc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/dhcpd/alloc.c b/usr.sbin/dhcpd/alloc.c
index e02aa69278b..19ffe2db116 100644
--- a/usr.sbin/dhcpd/alloc.c
+++ b/usr.sbin/dhcpd/alloc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: alloc.c,v 1.3 2004/05/04 20:28:40 deraadt Exp $ */
+/* $OpenBSD: alloc.c,v 1.4 2004/09/16 18:35:42 deraadt Exp $ */
/* Memory allocation... */
@@ -50,7 +50,7 @@ dmalloc(int size, char *name)
void *foo = calloc(size, sizeof(char));
if (!foo)
- warn("No memory for %s.", name);
+ warning("No memory for %s.", name);
return (foo);
}
@@ -58,7 +58,7 @@ void
dfree(void *ptr, char *name)
{
if (!ptr) {
- warn("dfree %s: free on null pointer.", name);
+ warning("dfree %s: free on null pointer.", name);
return;
}
free(ptr);