X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Frecctrl.c;h=873f9af3b2d607ed88f67d5b8502570b782aeda7;hb=bdf0f406d66c4702c3b8942d1bb33a9212283138;hp=f24395e4f9cbe2a572c51ad96a1662aecbdfdc12;hpb=ac13dceecd5f75669820819575daf88e0add5c8d;p=idzebra-moved-to-github.git diff --git a/index/recctrl.c b/index/recctrl.c index f24395e..873f9af 100644 --- a/index/recctrl.c +++ b/index/recctrl.c @@ -1,5 +1,5 @@ /* This file is part of the Zebra server. - Copyright (C) 1994-2011 Index Data + Copyright (C) 2004-2013 Index Data Zebra 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 @@ -134,7 +134,7 @@ static void load_from_dir(RecTypeClass *rts, NMEM nmem, const char *dirname) if (dir) { struct dirent *de; - + while ((de = readdir(dir))) { size_t dlen = strlen(de->d_name); @@ -165,7 +165,7 @@ static void load_from_dir(RecTypeClass *rts, NMEM nmem, const char *dirname) const char *err = dlerror(); yaz_log(YLOG_WARN, "dlopen failed %s %s", fname, err ? err : "none"); - + } } } @@ -182,11 +182,11 @@ void recTypeClass_load_modules(RecTypeClass *rts, NMEM nmem, const char *comp_ptr; char comp[FILENAME_MAX+1]; size_t len; - + len = yaz_filepath_comp(&module_path, &comp_ptr); if (!len || len >= FILENAME_MAX) break; - + memcpy(comp, comp_ptr, len); comp[len] = '\0'; @@ -201,7 +201,7 @@ static void recTypeClass_add(struct recTypeClass **rts, RecType *rt, { struct recTypeClass *r = (struct recTypeClass *) nmem_malloc (nmem, sizeof(*r)); - + r->next = *rts; *rts = r; @@ -236,7 +236,7 @@ RecTypes recTypes_init(RecTypeClass rtc, data1_handle dh) RecTypes rts = (RecTypes) nmem_malloc(data1_nmem_get(dh), sizeof(*rts)); struct recTypeInstance **rti = &rts->entries; - + rts->dh = dh; for (; rtc; rtc = rtc->next)