revert to upstream
[debian/amanda] / amandad-src / amandad.c
index c5e057f716c77b32d92363babee3d91b75eed659..430f2b7f6a5a33990c396891725f6a1f8f171e92 100644 (file)
@@ -48,9 +48,9 @@
 #define        REP_TIMEOUT     (6*60*60)       /* secs for service to reply */
 #define        ACK_TIMEOUT     10              /* XXX should be configurable */
 
-#define amandad_debug(i,x) do {                \
+#define amandad_debug(i, ...) do {     \
        if ((i) <= debug_amandad) {     \
-               dbprintf(x);            \
+               dbprintf(__VA_ARGS__);  \
        }                               \
 } while (0)
 
@@ -133,17 +133,6 @@ static struct {
     TAILQ_HEAD_INITIALIZER(serviceq.tailq), 0
 };
 
-/*
- * Data for dbmalloc to check for memory leaks
- */
-#ifdef USE_DBMALLOC
-static struct {
-    struct {
-       unsigned long size, hist;
-    } start, end;
-} dbmalloc_info;
-#endif
-
 static int wait_30s = 1;
 static int exit_on_qlength = 1;
 static char *auth = NULL;