summaryrefslogtreecommitdiffstats
path: root/usr.sbin/dhcpd/alloc.c
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2017-02-13 19:13:14 +0000
committerkrw <krw@openbsd.org>2017-02-13 19:13:14 +0000
commitc525a1850093eeda7e2f4793bb28f06faaca922a (patch)
treebae08923087470164b0eddd80c96e3124bf720bf /usr.sbin/dhcpd/alloc.c
parentFix powerdown with vmmci(4) VMs using a shutdown and no reset. (diff)
downloadwireguard-openbsd-c525a1850093eeda7e2f4793bb28f06faaca922a.tar.xz
wireguard-openbsd-c525a1850093eeda7e2f4793bb28f06faaca922a.zip
Switch from old errwarn.c logging to shiny new log.[ch].
ok benno@
Diffstat (limited to 'usr.sbin/dhcpd/alloc.c')
-rw-r--r--usr.sbin/dhcpd/alloc.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/dhcpd/alloc.c b/usr.sbin/dhcpd/alloc.c
index 89a906b1e20..7621a48764c 100644
--- a/usr.sbin/dhcpd/alloc.c
+++ b/usr.sbin/dhcpd/alloc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: alloc.c,v 1.14 2016/02/06 23:50:10 krw Exp $ */
+/* $OpenBSD: alloc.c,v 1.15 2017/02/13 19:13:14 krw Exp $ */
/* Memory allocation... */
@@ -53,6 +53,7 @@
#include "dhcp.h"
#include "tree.h"
#include "dhcpd.h"
+#include "log.h"
struct lease_state *free_lease_states;
struct tree_cache *free_tree_caches;
@@ -68,7 +69,7 @@ new_tree_cache(char *name)
} else {
rval = calloc(1, sizeof(struct tree_cache));
if (!rval)
- error("unable to allocate tree cache for %s.", name);
+ fatalx("unable to allocate tree cache for %s.", name);
}
return (rval);
}
@@ -91,7 +92,7 @@ new_lease_state(char *name)
} else {
rval = calloc(1, sizeof(struct lease_state));
if (!rval)
- error("unable to allocate lease state for %s.", name);
+ fatalx("unable to allocate lease state for %s.", name);
}
return (rval);