summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/util.c
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2012-02-20 05:24:35 +0100
committerDan McGee <dan@archlinux.org>2012-03-09 00:59:13 +0100
commit4773c6b66ef618f4c6345a99d9c246045e9c723b (patch)
tree6e3ccb31e84b8e5e3799a030eb4664c193633b03 /lib/libalpm/util.c
parent5c404268d965d9ca012e4819ac0c2f289a4c768c (diff)
downloadpacman-4773c6b66ef618f4c6345a99d9c246045e9c723b.tar.gz
pacman-4773c6b66ef618f4c6345a99d9c246045e9c723b.tar.xz
Remove _alpm_csum
The enum alpm_pkgvalidation_t is essentially a more generic version of _alpm_csum, so use it instead. Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm/util.c')
-rw-r--r--lib/libalpm/util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libalpm/util.c b/lib/libalpm/util.c
index c3212292..22e9e359 100644
--- a/lib/libalpm/util.c
+++ b/lib/libalpm/util.c
@@ -909,14 +909,14 @@ char SYMEXPORT *alpm_compute_sha256sum(const char *filename)
* error
*/
int _alpm_test_checksum(const char *filepath, const char *expected,
- enum _alpm_csum type)
+ alpm_pkgvalidation_t type)
{
char *computed;
int ret;
- if(type == ALPM_CSUM_MD5) {
+ if(type == ALPM_PKG_VALIDATION_MD5SUM) {
computed = alpm_compute_md5sum(filepath);
- } else if(type == ALPM_CSUM_SHA256) {
+ } else if(type == ALPM_PKG_VALIDATION_SHA256SUM) {
computed = alpm_compute_sha256sum(filepath);
} else {
return -1;