Added autoconf utility idzebra.m4 which defines --with-idzebra
[idzebra-moved-to-github.git] / index / kdump.c
index 46f4d8d..85327eb 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: kdump.c,v 1.23 2003-05-24 22:35:11 adam Exp $
+/* $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
 
@@ -20,7 +20,6 @@ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
 02111-1307, USA.
 */
 
-
 #include <stdio.h>
 #include <string.h>
 #include <assert.h>
@@ -36,7 +35,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 +102,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;
@@ -125,7 +131,7 @@ int main (int argc, char **argv)
         }
        else if (ret == 'c')
        {
-           if (!(res = res_open (arg, 0)))
+           if (!(res = res_open (arg, 0, 0)))
             {
                logf(LOG_FATAL, "Failed to open resource file %s", arg);
                exit (1);
@@ -143,7 +149,7 @@ int main (int argc, char **argv)
         exit (1);
     }
     if (!res)
-        res = res_open ("zebra.cfg", 0);
+        res = res_open ("zebra.cfg", 0, 0);
     zm = zebra_maps_open (res, 0);
     if (!(inf = fopen (key_fname, "r")))
     {
@@ -184,6 +190,6 @@ int main (int argc, char **argv)
         logf (LOG_FATAL|LOG_ERRNO, "fclose %s", key_fname);
         exit (1);
     }
-    
     exit (0);
 }
+#endif