[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
error in makedb
Matti,
in makedb.c, if HAVE_DB{1,2,3} are all not defined, it happens that
switch(typ) goes immediately after `else' if a true statement, and
dbm_open() is not performed. Here is the diff:
Index: utils/makedb/makedb.c
===================================================================
RCS file: /home/crosser/src/zmailer/cvsroot/zmailer/utils/makedb/makedb.c,v
retrieving revision 1.28
diff -u -r1.28 makedb.c
--- utils/makedb/makedb.c 23 Oct 2001 20:41:18 -0000 1.28
+++ utils/makedb/makedb.c 11 Dec 2001 18:44:15 -0000
@@ -886,12 +886,10 @@
#ifdef HAVE_NDBM
if (cistrcmp(dbtype, "ndbm") == 0)
typ = 1;
- else
#endif
#ifdef HAVE_GDBM
if (cistrcmp(dbtype, "gdbm") == 0)
typ = 2;
- else
#endif
#if defined(HAVE_DB1) || defined(HAVE_DB2) || defined(HAVE_DB3)
if (cistrcmp(dbtype, "btree") == 0)
Alternatively, `else'es may be moved down two lines, inside *next*
#ifdef'ed blocks.
Eugene
-
To unsubscribe from this list: send the line "unsubscribe zmailer" in
the body of a message to majordomo@nic.funet.fi