summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-10-22 01:43:34 -0700
committerDan McGee <dan@archlinux.org>2007-10-22 23:36:03 -0500
commit46eaa5c54200bfda402412e2f5b7df0eddc0230a (patch)
tree1c396c19e03a21ab380b947c4daf740045962b8d
parentf5b77eb9894ea92a08fac586ddf03e9ba70c3de8 (diff)
downloadpacman-46eaa5c54200bfda402412e2f5b7df0eddc0230a.tar.xz
Fix invalid static scoping of strverscmp
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--lib/libalpm/util.c2
-rw-r--r--lib/libalpm/util.h2
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 *);