From: Arran Cudbard-Bell Date: Fri, 22 Feb 2013 01:29:57 +0000 (-0500) Subject: Not needed as were using C99 types X-Git-Tag: release_3_0_0_beta1~958 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=636ca34e21852371ffc4dbb95709276a8772f097;p=thirdparty%2Ffreeradius-server.git Not needed as were using C99 types --- diff --git a/src/lib/base64.c b/src/lib/base64.c index 4b71eab2c88..9e15e7c1c0b 100644 --- a/src/lib/base64.c +++ b/src/lib/base64.c @@ -267,12 +267,6 @@ static const signed char b64[0x100] = { B64 (252), B64 (253), B64 (254), B64 (255) }; -#if UCHAR_MAX == 255 -# define uchar_in_range(c) TRUE -#else -# define uchar_in_range(c) ((c) <= 255) -#endif - /** Check if char is in Base64 alphabet * * Note that '=' is padding and not considered to be part of the alphabet. @@ -283,7 +277,7 @@ static const signed char b64[0x100] = { */ int fr_isbase64(char c) { - return uchar_in_range(us(c)) && 0 <= b64[us(c)]; + return b64[us(c)] > 0; } /* Decode base64 encoded input array.