+2001-06-21 Ezra Peisach <epeisach@mit.edu>
+
+ * util_validate.c (g_validate, g_save, g_delete): If HAVE_BSD_TYPE
+ is not defined, declare static functions as taking a void *type for
+ passing to g_set_entry_add.
+
2001-05-08 Ezra Peisach <epeisach@mit.edu>
* disp_major_status.c (display_unknown): Remove unused variable.
static int g_save(db, type, ptr)
void **db;
+#ifdef HAVE_BSD_DB
int type;
+#else
+ void *type;
+#endif
void *ptr;
{
#ifdef HAVE_BSD_DB
return((*((*vdb)->put))(*vdb, &key, &dbtone, 0) == 0);
#else
g_set *gs = (g_set *) db;
+ void *a = (void *) type;
if (!*gs)
if (g_set_init(gs))
return(0);
- return(g_set_entry_add(gs, ptr, (void *) type) == 0);
+ return(g_set_entry_add(gs, ptr, type) == 0);
#endif
}
static int g_validate(db, type, ptr)
void **db;
+#ifdef HAVE_BSD_DB
int type;
+#else
+ void *type;
+#endif
void *ptr;
{
#ifdef HAVE_BSD_DB
if (g_set_entry_get(gs, ptr, (void **) &value))
return(0);
- return(((int) value) == type);
+ return(value == type);
#endif
}
static int g_delete(db, type, ptr)
void **db;
+#ifdef HAVE_BSD_DB
int type;
+#else
+ void *type;
+#endif
void *ptr;
{
#ifdef HAVE_BSD_DB