X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;ds=sidebyside;f=src%2Fdatabase.c;h=2b40874a94f3e2a365164eec850c8550dd66d689;hb=2628f9508a3b56be7071f2db91f9f4fd1f6f2d52;hp=90697916baade13ba875e618b41fc7324a64a373;hpb=18701a2fcad5171b03a76ceda18702831eb90850;p=pazpar2-moved-to-github.git diff --git a/src/database.c b/src/database.c index 9069791..2b40874 100644 --- a/src/database.c +++ b/src/database.c @@ -1,5 +1,5 @@ /* This file is part of Pazpar2. - Copyright (C) 2006-2008 Index Data + Copyright (C) 2006-2009 Index Data Pazpar2 is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -23,9 +23,6 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #include #include -#include -#include -#include #include #include #include @@ -134,7 +131,7 @@ static struct database *load_database(const char *id) if ((dbname = strchr(hostport, '/'))) *(dbname++) = '\0'; else - dbname = "Default"; + dbname = ""; if (!(host = find_host(hostport))) return 0; db = nmem_malloc(nmem, sizeof(*db)); @@ -293,7 +290,9 @@ int predef_grep_databases(void *context, struct database_criterion *cl, /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab */ +