From: wessels <> Date: Wed, 31 Dec 1997 06:18:47 +0000 (+0000) Subject: change warning-generating-cast in printf to an assertion X-Git-Tag: SQUID_3_0_PRE1~4335 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=91515c1a3ebf0809ff7538cc3c01308ff9fd19cd;p=thirdparty%2Fsquid.git change warning-generating-cast in printf to an assertion --- diff --git a/lib/radix.c b/lib/radix.c index ff4d656ba7..3846e6bf9d 100644 --- a/lib/radix.c +++ b/lib/radix.c @@ -101,6 +101,10 @@ #if HAVE_SYS_PARAM_H #include #endif +#if HAVE_ASSERT_H +#include +#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 } } /*