From 4773c6b66ef618f4c6345a99d9c246045e9c723b Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Mon, 20 Feb 2012 14:24:35 +1000 Subject: 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 --- lib/libalpm/util.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/libalpm/util.c') 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; -- cgit v1.2.3-24-g4f1b