]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
change warning-generating-cast in printf to an assertion
authorwessels <>
Wed, 31 Dec 1997 06:18:47 +0000 (06:18 +0000)
committerwessels <>
Wed, 31 Dec 1997 06:18:47 +0000 (06:18 +0000)
lib/radix.c

index ff4d656ba72af6023258e9b622a737a62fe7749d..3846e6bf9d5e9e20c1935aad9fbddf0427b0c643 100644 (file)
 #if HAVE_SYS_PARAM_H
 #include <sys/param.h>
 #endif
+#if HAVE_ASSERT_H
+#include <assert.h>
+#endif
+
 #include "util.h"
 
 #include "radix.h"
@@ -876,9 +880,13 @@ rn_delete(v_arg, netmask_arg, head)
                        MKFree(m);
                    m = mm;
                }
+#if RN_DEBUG
            if (m)
                fprintf(stderr, "%s %x at %x\n",
                    "rn_delete: Orphaned Mask", (int) m, (int) x);
+#else
+           assert(m == NULL);
+#endif
        }
     }
     /*