From 73402a14599d4bdb72e68c133414b5bfb4ef062b Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Fri, 9 Feb 2007 21:54:57 +0000 Subject: * Fix compile errors/warnings. * Update .cvsignore files a bit. --- lib/libalpm/alpm.c | 1 - lib/libalpm/package.c | 3 ++- lib/libalpm/po/.cvsignore | 2 -- lib/libalpm/versioncmp.h | 2 +- 4 files changed, 3 insertions(+), 5 deletions(-) (limited to 'lib/libalpm') diff --git a/lib/libalpm/alpm.c b/lib/libalpm/alpm.c index a366562d..5872b139 100644 --- a/lib/libalpm/alpm.c +++ b/lib/libalpm/alpm.c @@ -1146,7 +1146,6 @@ alpm_list_t *alpm_get_upgrades() /* now do normal upgrades */ for(i = _alpm_db_get_pkgcache(handle->db_local, INFRQ_NONE); i; i = i->next) { - int cmp; int replace=0; pmpkg_t *local = i->data; pmpkg_t *spkg = NULL; diff --git a/lib/libalpm/package.c b/lib/libalpm/package.c index 2a9144a7..efc2345a 100644 --- a/lib/libalpm/package.c +++ b/lib/libalpm/package.c @@ -31,13 +31,14 @@ #include #include /* pacman */ +#include "package.h" #include "log.h" #include "util.h" #include "error.h" #include "alpm_list.h" -#include "package.h" #include "db.h" #include "handle.h" +#include "versioncmp.h" #include "alpm.h" pmpkg_t *_alpm_pkg_new(const char *name, const char *version) diff --git a/lib/libalpm/po/.cvsignore b/lib/libalpm/po/.cvsignore index 225235bc..50a7b2a4 100644 --- a/lib/libalpm/po/.cvsignore +++ b/lib/libalpm/po/.cvsignore @@ -3,6 +3,4 @@ Makefile.in *.gmo POTFILES stamp-po - -remove-potcdate.sin remove-potcdate.sed diff --git a/lib/libalpm/versioncmp.h b/lib/libalpm/versioncmp.h index 5ce3c286..5614ada3 100644 --- a/lib/libalpm/versioncmp.h +++ b/lib/libalpm/versioncmp.h @@ -27,7 +27,7 @@ #include "package.h" int _alpm_depcmp(pmpkg_t *pkg, pmdepend_t *dep); -int _alpm_versioncmp(const char *a, const char *b) +int _alpm_versioncmp(const char *a, const char *b); #endif -- cgit v1.2.3-70-g09d2