Commit 086c7f65 authored by Ted Lemon's avatar Ted Lemon
Browse files

Cast memcmp, for operating systems that aren't following the latest POSIX.

parent fcd404f5
......@@ -43,7 +43,7 @@
#ifndef lint
static char copyright[] =
"$Id: hash.c,v 1.20 2000/03/18 03:31:39 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium. All rights reserved.\n";
"$Id: hash.c,v 1.21 2000/04/20 00:56:20 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
......@@ -67,7 +67,7 @@ struct hash_table *new_hash (hash_reference referencer,
rv -> cmp = casecmp;
rv -> do_hash = do_case_hash;
} else {
rv -> cmp = memcmp;
rv -> cmp = (hash_comparator_t)memcmp;
rv -> do_hash = do_hash;
}
return rv;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment