mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-22 15:58:50 -05:00
const-ify endswith()
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
aefb4e0fa5
commit
4b78852f7e
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user