From: Adam Dickmeiss Date: Fri, 25 Sep 2009 07:57:36 +0000 (+0200) Subject: Mark inline functions static. X-Git-Tag: v1.2.1~10^2~8 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=2768b3680980f0352acbb4d901c207238e8e5696;p=pazpar2-moved-to-github.git Mark inline functions static. Mark the strtrimcat and strtrimcpy static. This fixes compilation of Pazpar2 for Sun Studio C. --- diff --git a/src/marchash.c b/src/marchash.c index 6376d1f..7cebcd7 100644 --- a/src/marchash.c +++ b/src/marchash.c @@ -37,7 +37,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #include "jenkins_hash.h" #include -inline void strtrimcat(char *dest, const char *src) +static inline void strtrimcat(char *dest, const char *src) { const char *in; char *out; @@ -63,7 +63,7 @@ inline void strtrimcat(char *dest, const char *src) *(++last_nonspace) = '\0'; } -inline void strtrimcpy(char *dest, const char *src) +static inline void strtrimcpy(char *dest, const char *src) { *dest = '\0'; strtrimcat(dest, src);