From: Ted Lemon Date: Thu, 20 Apr 2000 00:56:20 +0000 (+0000) Subject: Cast memcmp, for operating systems that aren't following the latest POSIX. X-Git-Tag: V3-BETA-2-PATCH-1~240 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=086c7f65c6efea7ddc89c640fe6b8062e3cf248a;p=thirdparty%2Fdhcp.git Cast memcmp, for operating systems that aren't following the latest POSIX. --- diff --git a/common/hash.c b/common/hash.c index 83a530bf2..ffc9193ad 100644 --- a/common/hash.c +++ b/common/hash.c @@ -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;