[Date Prev][Date Next] [Chronological] [Thread] [Top]

Missing return values from backends (ITS#90)

Some callback routines fail to return an integer status.

  perl_back_db_destroy in back-perl/close.c
  perl_back_search     in back-perl/search.c
  ldbm_back_unbind     in back-ldbm/unbind.c

All are caught by gcc -Wimplicit -Wreturn-type.  That is,
-Wimplicit would have discovered that back-ldbm needs this patch

--- unbind.c	1998/11/15 21:40:22	1.3
+++ unbind.c	1999/03/03 16:23:19
@@ -7,6 +7,8 @@
 #include "slap.h"
+#include "back-ldbm.h"
+#include "proto-back-ldbm.h"
 	Backend     *be,

...but I'm not sure _what_ these routines should return.
Is there a brief README for the backend interfaces somewhere?