diff options
| author | 2004-09-16 18:35:42 +0000 | |
|---|---|---|
| committer | 2004-09-16 18:35:42 +0000 | |
| commit | 0795b38919d5e1a9797bb5628fbd00cbe8824b7d (patch) | |
| tree | f73c46995a06a83b0a5501f0a8a7c9b62bdb339d /usr.sbin/dhcpd/alloc.c | |
| parent | ftruncate() with ftello() instead of ftell(); ok millert (diff) | |
| download | wireguard-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.c | 6 |
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); |
