From 46eaa5c54200bfda402412e2f5b7df0eddc0230a Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Mon, 22 Oct 2007 01:43:34 -0700 Subject: Fix invalid static scoping of strverscmp Signed-off-by: Dan McGee --- lib/libalpm/util.c | 2 +- lib/libalpm/util.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libalpm/util.c b/lib/libalpm/util.c index 9d4adb2d..016c0f40 100644 --- a/lib/libalpm/util.c +++ b/lib/libalpm/util.c @@ -81,7 +81,7 @@ equal to or greater than S2 (for more info, see the texinfo doc). */ -static int strverscmp (s1, s2) +int strverscmp (s1, s2) const char *s1; const char *s2; { diff --git a/lib/libalpm/util.h b/lib/libalpm/util.h index 17fa1235..5b6fac99 100644 --- a/lib/libalpm/util.h +++ b/lib/libalpm/util.h @@ -57,7 +57,7 @@ char *_alpm_filecache_find(const char *filename); const char *_alpm_filecache_setup(void); #ifndef HAVE_STRVERSCMP -static int strverscmp(const char *, const char *); +int strverscmp(const char *, const char *); #endif #ifndef HAVE_STRSEP char *strsep(char **, const char *); -- cgit v1.2.3-70-g09d2