Print this page
5910 libnisdb won't build with modern GCC

@@ -21,10 +21,12 @@
 /*
  *      nis_db.cc
  *
  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
+ *
+ * Copyright 2015 RackTop Systems.
  */
 
 
 #include <sys/param.h>
 #include <strings.h>

@@ -142,11 +144,11 @@
 extern "C" {
 
 bool_t
 db_in_dict_file(char *name)
 {
-        return ((bool_t) InUseDictionary->find_table_desc(name));
+        return (InUseDictionary->find_table_desc(name) != NULL);
 
 }
 
 const char
 *db_perror(db_status dbstat)