From 86313eb6f5a726c3f46e9be32587291d569698a2 Mon Sep 17 00:00:00 2001 From: Robert James Kaes Date: Wed, 23 May 2001 18:00:54 +0000 Subject: Made the safefree() macro enabled all the time. --- src/tinyproxy.h | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/tinyproxy.h b/src/tinyproxy.h index 28a1ff0..8cd2692 100644 --- a/src/tinyproxy.h +++ b/src/tinyproxy.h @@ -1,4 +1,4 @@ -/* $Id: tinyproxy.h,v 1.6 2000-09-26 04:58:35 rjkaes Exp $ +/* $Id: tinyproxy.h,v 1.7 2001-05-23 18:00:54 rjkaes Exp $ * * See 'tinyproxy.c' for a detailed description. * @@ -52,7 +52,8 @@ # include #endif #include -#include +#include +#include #ifndef SHUT_RD /* these three Posix.1g names are quite new */ # define SHUT_RD 0 /* shutdown for reading */ @@ -69,11 +70,7 @@ #define min(a,b) ((a) < (b) ? (a) : (b)) #define max(a,b) ((a) > (b) ? (a) : (b)) -#ifndef NDEBUG -# define safefree(x) do { free(x); x = NULL; } while (0) -#else -# define safefree(x) free(x) -#endif +#define safefree(x) do { free(x); x = NULL; } while (0) /* Make a new type: bool_t */ typedef enum { -- cgit v1.2.3