X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fkdump.c;h=ae1d6b2625dbddcb94275f2ed7259cf8a1c0dbf2;hb=c33ea56e3771c3b80ba66ef8fda3a09cad171ebb;hp=aab7f4581c9a9a62f76d858263637675c97be426;hpb=2a6f64379961f30bfe6376964ce279ab5242da1f;p=idzebra-moved-to-github.git diff --git a/index/kdump.c b/index/kdump.c index aab7f45..ae1d6b2 100644 --- a/index/kdump.c +++ b/index/kdump.c @@ -1,6 +1,6 @@ -/* $Id: kdump.c,v 1.24 2004-01-22 11:27:21 adam Exp $ - Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 - Index Data Aps +/* $Id: kdump.c,v 1.32 2006-08-14 10:40:15 adam Exp $ + Copyright (C) 1995-2006 + Index Data ApS This file is part of the Zebra server. @@ -15,18 +15,19 @@ FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License -along with Zebra; see the file LICENSE.zebra. If not, write to the -Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. -*/ +along with this program; if not, write to the Free Software +Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ #include #include #include +#include #ifdef WIN32 #include -#else +#endif +#if HAVE_UNISTD_H #include #endif #include @@ -36,7 +37,13 @@ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA char *prog; +int main(int argc, char **argv) +{ + exit(0); +} +#if 0 +/* old kdumper.. must be updated to use new codec .. */ int key_file_decode (FILE *f) { int c, d; @@ -97,6 +104,7 @@ static int read_one (FILE *inf, char *name, char *key, struct it_key *prevk) return 1; } + int main (int argc, char **argv) { int ret; @@ -127,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); } } @@ -147,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"); @@ -181,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 + */ +