summaryrefslogtreecommitdiff
path: root/usr.sbin/dhcpd/hash.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2017-02-13 19:13:15 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2017-02-13 19:13:15 +0000
commit811cf9b90880cad1317d38af0ee02bb8a610344f (patch)
treef39bbb73444fddb9f5b95af1137c8df724e02ca6 /usr.sbin/dhcpd/hash.c
parentc6d042e8925615d25605390a9241b5f99cd46d5d (diff)
Switch from old errwarn.c logging to shiny new log.[ch].
ok benno@
Diffstat (limited to 'usr.sbin/dhcpd/hash.c')
-rw-r--r--usr.sbin/dhcpd/hash.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/dhcpd/hash.c b/usr.sbin/dhcpd/hash.c
index 2f478d14de9..2f84aad9e93 100644
--- a/usr.sbin/dhcpd/hash.c
+++ b/usr.sbin/dhcpd/hash.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hash.c,v 1.7 2016/02/06 23:50:10 krw Exp $ */
+/* $OpenBSD: hash.c,v 1.8 2017/02/13 19:13:14 krw Exp $ */
/* Routines for manipulating hash tables... */
@@ -54,6 +54,7 @@
#include "dhcp.h"
#include "tree.h"
#include "dhcpd.h"
+#include "log.h"
static int do_hash(unsigned char *, int, int);
@@ -64,7 +65,7 @@ new_hash(void)
rv = calloc(1, sizeof(struct hash_table));
if (!rv)
- warning("No memory for new hash.");
+ log_warnx("No memory for new hash.");
else
rv->hash_count = DEFAULT_HASH_SIZE;
@@ -102,7 +103,7 @@ void add_hash(struct hash_table *table, unsigned char *name, int len,
hashno = do_hash(name, len, table->hash_count);
bp = calloc(1, sizeof(struct hash_bucket));
if (!bp) {
- warning("Can't add %s to hash table.", name);
+ log_warnx("Can't add %s to hash table.", name);
return;
}
bp->name = name;