removing typo.
[pazpar2-moved-to-github.git] / src / database.c
index dafb4bc..9228162 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: database.c,v 1.27 2007-05-18 19:52:52 quinn Exp $
+/* $Id: database.c,v 1.29 2007-06-28 09:36:10 adam Exp $
    Copyright (c) 2006-2007, Index Data.
 
 This file is part of Pazpar2.
@@ -144,7 +144,7 @@ static struct database *load_database(const char *id)
 
     db->settings = nmem_malloc(nmem, sizeof(struct settings*) * settings_num());
     memset(db->settings, 0, sizeof(struct settings*) * settings_num());
-    idset = nmem_malloc(nmem, sizeof(*id));
+    idset = nmem_malloc(nmem, sizeof(*idset));
     idset->precedence = 0;
     idset->name = "pz:id";
     idset->target = idset->value = db->url;
@@ -259,8 +259,8 @@ int session_grep_databases(struct session *se, struct database_criterion *cl,
     return i;
 }
 
-int grep_databases(void *context, struct database_criterion *cl,
-        void (*fun)(void *context, struct database *db))
+int predef_grep_databases(void *context, struct database_criterion *cl,
+                          void (*fun)(void *context, struct database *db))
 {
     struct database *p;
     int i = 0;