projects
/
idzebra-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixup data1 tags which makes XML non-wellformed.. This effectively
[idzebra-moved-to-github.git]
/
index
/
kdump.c
diff --git
a/index/kdump.c
b/index/kdump.c
index
6d78d70
..
ce273be
100644
(file)
--- a/
index/kdump.c
+++ b/
index/kdump.c
@@
-1,6
+1,6
@@
-/* $Id: kdump.c,v 1.25 2004-08-04 08:35:23 adam Exp $
- Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002
- Index Data Aps
+/* $Id: kdump.c,v 1.30 2005-08-05 10:40:13 adam Exp $
+ Copyright (C) 1995-2005
+ Index Data ApS
This file is part of the Zebra server.
This file is part of the Zebra server.
@@
-23,9
+23,11
@@
Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <stdio.h>
#include <string.h>
#include <assert.h>
+#include <stdlib.h>
#ifdef WIN32
#include <io.h>
#ifdef WIN32
#include <io.h>
-#else
+#endif
+#if HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <assert.h>
#include <unistd.h>
#endif
#include <assert.h>
@@
-35,12
+37,13
@@
Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
char *prog;
char *prog;
-#if IT_KEY_NEW
int main(int argc, char **argv)
{
exit(0);
}
int main(int argc, char **argv)
{
exit(0);
}
-#else
+
+#if 0
+/* old kdumper.. must be updated to use new codec .. */
int key_file_decode (FILE *f)
{
int c, d;
int key_file_decode (FILE *f)
{
int c, d;
@@
-132,13
+135,13
@@
int main (int argc, char **argv)
{
if (!(res = res_open (arg, 0, 0)))
{
{
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
{
exit (1);
}
}
else
{
- logf (LOG_FATAL, "Unknown option '-%s'", arg);
+ yaz_log (YLOG_FATAL, "Unknown option '-%s'", arg);
exit (1);
}
}
exit (1);
}
}
@@
-152,7
+155,7
@@
int main (int argc, char **argv)
zm = zebra_maps_open (res, 0);
if (!(inf = fopen (key_fname, "r")))
{
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");
exit (1);
}
printf ("t rg op sysno seqno txt\n");
@@
-186,7
+189,7
@@
int main (int argc, char **argv)
zebra_maps_close (zm);
if (fclose (inf))
{
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);
exit (1);
}
exit (0);