From: Alex Rousskov Date: Fri, 13 Mar 2009 21:41:51 +0000 (-0600) Subject: Made max #define safer. Do we really need it? X-Git-Tag: SQUID_3_2_0_1~1122 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fe8a08ce34ecdd1140247a01f37a317a1972df3d;p=thirdparty%2Fsquid.git Made max #define safer. Do we really need it? --- diff --git a/helpers/basic_auth/MSNT/smblib-priv.h b/helpers/basic_auth/MSNT/smblib-priv.h index 859b6b9253..66c99dbc31 100644 --- a/helpers/basic_auth/MSNT/smblib-priv.h +++ b/helpers/basic_auth/MSNT/smblib-priv.h @@ -34,7 +34,7 @@ #include "byteorder.h" /* Hmmm ... hot good */ #ifndef max -#define max(a,b) (a < b ? b : a) +#define max(a,b) ((a) < (b) ? (b) : (a)) #endif #define SMB_DEF_IDF 0x424D53FF /* "\377SMB" */