$NetBSD: patch-ah,v 1.3 2012/01/25 09:56:08 he Exp $

A number of changes to make this build with no warnings under -Wall.

--- classes/fuzzdict.c.orig	1994-10-05 05:18:22.000000000 +0000
+++ classes/fuzzdict.c
@@ -4,6 +4,9 @@
  * unique prefix.  Need to find a better name.
  */
 
+#include <stdlib.h>
+#include <string.h>
+
 #define _CLASS_FuzzDict_PRIVATE_
 #include "fuzzdict.h"
 
@@ -18,7 +21,9 @@ typedef dict_value_t	Value_t;
 #define SUPER_remove(S, K)	dict_remove ((Dict)(S), K)
 #define SUPER_keys(S)		dict_keys ((Dict)(S))
 
+#if !defined(HAVE_STRERROR)
 extern int strcmp(), strcasecmp(), strncmp(), strncasecmp();
+#endif
 
 /* Private function declarations */
 #ifdef __STDC__
@@ -111,7 +116,7 @@ Key_t	key;
 {
 	Value_t rslt;
 
-	if (rslt = SUPER_remove (self, key))
+	if ((rslt = SUPER_remove (self, key)) != 0)
 		self->keylistValid = 0;
 	return rslt;
 }
@@ -128,13 +133,13 @@ Key_t	key;
 	Value_t ret;
 
 	/* Do we have an exact match? */
-	if (ret = SUPER_find (self, key))
+	if ((ret = SUPER_find (self, key)) != 0)
 		return ret;
 
 	/*
 	 * See if we can find a unique match on the prefix.
 	 */
-	if (key = fuzzdict_bsearch (self, key))
+	if ((key = fuzzdict_bsearch (self, key)) != 0)
 		return SUPER_find (self, key);
 
 	/* Can't find it */
