From 2768b3680980f0352acbb4d901c207238e8e5696 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 25 Sep 2009 09:57:36 +0200 Subject: [PATCH] Mark inline functions static. Mark the strtrimcat and strtrimcpy static. This fixes compilation of Pazpar2 for Sun Studio C. --- src/marchash.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 1.7.10.4