index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2009-04-11 14:13:03 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2009-04-11 14:13:03 -0500 |
commit | 4b78852f7e78ec605be0a382ddc78afe33251d78 (patch) | |
tree | 1cf5c7336f5b8cfc14b9550384a4565f66e75294 /lib/libalpm/sync.c | |
parent | aefb4e0fa54ad5b4140d6991f389b5a6fb4ead6d (diff) |
-rw-r--r-- | lib/libalpm/sync.c | 6 |
diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c index 608ee4fc..85a07554 100644 --- a/lib/libalpm/sync.c +++ b/lib/libalpm/sync.c @@ -607,10 +607,10 @@ off_t SYMEXPORT alpm_pkg_download_size(pmpkg_t *newpkg) return(newpkg->download_size); } -static int endswith(char *filename, char *extension) +static int endswith(const char *filename, const char *extension) { - char *s = filename + strlen(filename) - strlen(extension); - return (strcmp(s, extension) == 0); + const char *s = filename + strlen(filename) - strlen(extension); + return(strcmp(s, extension) == 0); } /** Applies delta files to create an upgraded package file. |