X-Git-Url: http://www.privoxy.org/gitweb/?a=blobdiff_plain;f=list.c;h=a2d7ff6bc5758d30a4c4b9f02096fff10af73817;hb=8afadd97bacc9f2de0a1c6a19f6fb75c272244da;hp=b9963af1965e2af8f9ccd8e3f05ac4599a11b181;hpb=afa231b8e31bbf0489303df30d103db2d737cd18;p=privoxy.git diff --git a/list.c b/list.c index b9963af1..a2d7ff6b 100644 --- a/list.c +++ b/list.c @@ -55,8 +55,9 @@ #include "list.h" #include "miscutil.h" +#ifndef NDEBUG static int list_is_valid (const struct list *the_list); - +#endif /********************************************************************* * @@ -123,6 +124,7 @@ void destroy_list (struct list *the_list) } +#ifndef NDEBUG /********************************************************************* * * Function : list_is_valid @@ -142,11 +144,6 @@ void destroy_list (struct list *the_list) *********************************************************************/ static int list_is_valid (const struct list *the_list) { - /* - * If you don't want this check, just change the line below - * from "#if 1" to "#if 0". - */ -#if 1 const struct list_entry *cur_entry; const struct list_entry *last_entry = NULL; int entry = 0; @@ -199,10 +196,10 @@ static int list_is_valid (const struct list *the_list) } return (the_list->last == last_entry); -#else - return 1; -#endif + } +#endif /* ndef NDEBUG */ + /********************************************************************* *