From: Amos Jeffries Date: Sun, 14 Mar 2010 09:39:48 +0000 (+1300) Subject: AIX cannot cope with static inline in C code. X-Git-Tag: SQUID_3_2_0_1~367 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e4d5e365a5b0e701fc4428f1b77825391753f770;p=thirdparty%2Fsquid.git AIX cannot cope with static inline in C code. --- diff --git a/lib/rfc1738.c b/lib/rfc1738.c index a0edaf7576..f4059f2b1d 100644 --- a/lib/rfc1738.c +++ b/lib/rfc1738.c @@ -176,10 +176,9 @@ rfc1738_escape_part(const char *url) #endif /* 0 */ /* - * rfc1738_unescape() - Converts escaped characters (%xy numbers) in - * given the string. %% is a %. %ab is the 8-bit hexadecimal number "ab" + * Converts a ascii hex code into a binary character. */ -static inline int +inline int fromhex(char ch) { if (ch >= '0' && ch <= '9') @@ -191,6 +190,10 @@ fromhex(char ch) return -1; } +/* + * rfc1738_unescape() - Converts escaped characters (%xy numbers) in + * given the string. %% is a %. %ab is the 8-bit hexadecimal number "ab" + */ void rfc1738_unescape(char *s) {