summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/util.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-08-20 12:55:38 -0400
committerDan McGee <dan@archlinux.org>2007-08-20 12:58:17 -0400
commit942175feaa866c4e536a7da0f77ab54de98b6c07 (patch)
treedb190135ad82672a1b0dc3328500ce49c5dd0023 /lib/libalpm/util.c
parent3acbf56bbab128d8ef037a7dcc87d91fe7354d14 (diff)
downloadpacman-942175feaa866c4e536a7da0f77ab54de98b6c07.tar.xz
Add const qualifier to md5_file and alpm_get_md5sum
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/util.c')
-rw-r--r--lib/libalpm/util.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/libalpm/util.c b/lib/libalpm/util.c
index 5f431171..64371348 100644
--- a/lib/libalpm/util.c
+++ b/lib/libalpm/util.c
@@ -547,7 +547,7 @@ int _alpm_str_cmp(const void *s1, const void *s2)
* @return the checksum on success, NULL on error
* @addtogroup alpm_misc
*/
-char SYMEXPORT *alpm_get_md5sum(char *filename)
+char SYMEXPORT *alpm_get_md5sum(const char *filename)
{
unsigned char output[16];
char *md5sum;
@@ -582,6 +582,4 @@ char SYMEXPORT *alpm_get_md5sum(char *filename)
return(md5sum);
}
-
-
/* vim: set ts=2 sw=2 noet: */