From: hno <> Date: Sat, 6 Jan 2001 18:41:37 +0000 (+0000) Subject: Oops.. optimized CBDATA_INIT_TYPE but I got the logics the wrong way around.. X-Git-Tag: SQUID_3_0_PRE1~1684 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4a7552dea800d2234ffa43a8081e9c1e67a8246f;p=thirdparty%2Fsquid.git Oops.. optimized CBDATA_INIT_TYPE but I got the logics the wrong way around.. --- diff --git a/src/defines.h b/src/defines.h index 16066e306c..0abde80070 100644 --- a/src/defines.h +++ b/src/defines.h @@ -1,6 +1,6 @@ /* - * $Id: defines.h,v 1.86 2001/01/06 11:39:43 hno Exp $ + * $Id: defines.h,v 1.87 2001/01/06 11:41:37 hno Exp $ * * * SQUID Internet Object Cache http://squid.nlanr.net/Squid/ @@ -286,7 +286,7 @@ #define CBDATA_ALLOC(type, unl) ((type *)cbdataInternalAlloc(CBDATA_##type, unl)) #define CBDATA_TYPE(type) static cbdata_type CBDATA_##type = 0 #define CBDATA_GLOBAL_TYPE(type) cbdata_type CBDATA_##type -#define CBDATA_INIT_TYPE(type) (CBDATA_##type ? (CBDATA_##type = cbdataAddType(CBDATA_##type, #type, sizeof(type))) : 0) +#define CBDATA_INIT_TYPE(type) (CBDATA_##type ? 0 : (CBDATA_##type = cbdataAddType(CBDATA_##type, #type, sizeof(type)))) #ifndef O_TEXT #define O_TEXT 0