]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Cast memcmp, for operating systems that aren't following the latest POSIX.
authorTed Lemon <source@isc.org>
Thu, 20 Apr 2000 00:56:20 +0000 (00:56 +0000)
committerTed Lemon <source@isc.org>
Thu, 20 Apr 2000 00:56:20 +0000 (00:56 +0000)
common/hash.c

index 83a530bf250c4f5bdbe9a7c75c22422b0b9eaa14..ffc9193ad19f52a51e80aa1bc852178ec1a08901 100644 (file)
@@ -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;