]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
AIX cannot cope with static inline in C code.
authorAmos Jeffries <squid3@treenet.co.nz>
Sun, 14 Mar 2010 09:39:48 +0000 (22:39 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 14 Mar 2010 09:39:48 +0000 (22:39 +1300)
lib/rfc1738.c

index a0edaf75761553e0287f17e60577d87bb9ee0038..f4059f2b1d965c2ac93a6baf58ac03f60d083a59 100644 (file)
@@ -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)
 {