X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fkdump.c;h=6103bcaa1cb525570ffdee0cb2c178b34eb945a6;hb=4b596d1b6150430c615ca7724876e5974a282d7d;hp=85327eb68a177b46594c67d9a1bd526061801b9e;hpb=cef013b96c9508d5fd8552e7fd05962029b37e6f;p=idzebra-moved-to-github.git diff --git a/index/kdump.c b/index/kdump.c index 85327eb..6103bca 100644 --- a/index/kdump.c +++ b/index/kdump.c @@ -1,6 +1,6 @@ -/* $Id: kdump.c,v 1.26 2004-09-15 08:13:51 adam Exp $ - Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 - Index Data Aps +/* $Id: kdump.c,v 1.31 2006-05-10 08:13:21 adam Exp $ + Copyright (C) 1995-2005 + Index Data ApS This file is part of the Zebra server. @@ -23,9 +23,11 @@ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA #include #include #include +#include #ifdef WIN32 #include -#else +#endif +#if HAVE_UNISTD_H #include #endif #include @@ -133,13 +135,13 @@ int main (int argc, char **argv) { if (!(res = res_open (arg, 0, 0))) { - logf(LOG_FATAL, "Failed to open resource file %s", arg); + yaz_log(YLOG_FATAL, "Failed to open resource file %s", arg); exit (1); } } else { - logf (LOG_FATAL, "Unknown option '-%s'", arg); + yaz_log (YLOG_FATAL, "Unknown option '-%s'", arg); exit (1); } } @@ -153,7 +155,7 @@ int main (int argc, char **argv) zm = zebra_maps_open (res, 0); if (!(inf = fopen (key_fname, "r"))) { - logf (LOG_FATAL|LOG_ERRNO, "fopen %s", key_fname); + yaz_log (YLOG_FATAL|YLOG_ERRNO, "fopen %s", key_fname); exit (1); } printf ("t rg op sysno seqno txt\n"); @@ -187,9 +189,17 @@ int main (int argc, char **argv) zebra_maps_close (zm); if (fclose (inf)) { - logf (LOG_FATAL|LOG_ERRNO, "fclose %s", key_fname); + yaz_log (YLOG_FATAL|YLOG_ERRNO, "fclose %s", key_fname); exit (1); } exit (0); } #endif +/* + * Local variables: + * c-basic-offset: 4 + * indent-tabs-mode: nil + * End: + * vim: shiftwidth=4 tabstop=8 expandtab + */ +