X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fretrieve.c;h=ebea719ee9d9563aa9487001420b998bc3af0da5;hb=4b903c542156253ebb2a4f004b528fe9e3af5212;hp=8957c3cd1f05bc00c2401ac25acc9fa11940f598;hpb=5623222cf968d493c2bc9506c42b8344de60c4e5;p=idzebra-moved-to-github.git diff --git a/index/retrieve.c b/index/retrieve.c index 8957c3c..ebea719 100644 --- a/index/retrieve.c +++ b/index/retrieve.c @@ -1,4 +1,4 @@ -/* $Id: retrieve.c,v 1.72 2007-08-21 13:27:04 adam Exp $ +/* $Id: retrieve.c,v 1.73 2007-10-29 09:25:40 adam Exp $ Copyright (C) 1995-2007 Index Data ApS @@ -62,8 +62,8 @@ static int zebra_create_record_stream(ZebraHandle zh, else strcpy(full_rep, (*rec)->info[recInfo_filename]); - if ((fd = open (full_rep, O_BINARY|O_RDONLY)) == -1){ - yaz_log (YLOG_WARN|YLOG_ERRNO, "Retrieve fail; missing file: %s", + if ((fd = open(full_rep, O_BINARY|O_RDONLY)) == -1){ + yaz_log(YLOG_WARN|YLOG_ERRNO, "Retrieve fail; missing file: %s", full_rep); rec_free(rec); return YAZ_BIB1_SYSTEM_ERROR_IN_PRESENTING_RECORDS; @@ -740,8 +740,8 @@ int zebra_record_fetch(ZebraHandle zh, const char *setname, file_type = rec->info[recInfo_fileType]; fname = rec->info[recInfo_filename]; basename = rec->info[recInfo_databaseName]; - *basenamep = (char *) odr_malloc (odr, strlen(basename)+1); - strcpy (*basenamep, basename); + *basenamep = (char *) odr_malloc(odr, strlen(basename)+1); + strcpy(*basenamep, basename); yaz_log(YLOG_DEBUG, "retrieve localno=" ZINT_FORMAT " score=%d", sysno, score);