diff options
author | Robert James Kaes <rjkaes@users.sourceforge.net> | 2001-05-23 18:00:54 +0000 |
---|---|---|
committer | Robert James Kaes <rjkaes@users.sourceforge.net> | 2001-05-23 18:00:54 +0000 |
commit | 86313eb6f5a726c3f46e9be32587291d569698a2 (patch) | |
tree | f1300689e2f8528db18cf52c8e0192d185e8a73f /src | |
parent | b1d942c22a8fafa0ad023d7ddf05f8e83b75aebb (diff) | |
download | tinyproxy-86313eb6f5a726c3f46e9be32587291d569698a2.tar.gz tinyproxy-86313eb6f5a726c3f46e9be32587291d569698a2.zip |
Made the safefree() macro enabled all the time.
Diffstat (limited to 'src')
-rw-r--r-- | src/tinyproxy.h | 11 |
1 files 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 <strings.h> #endif #include <time.h> -#include <unistd.h> +#include <unistd.h> +#include <assert.h> #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 { |