diff options
author | Allan McRae <allan@archlinux.org> | 2012-02-20 05:24:35 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-03-09 00:59:13 +0100 |
commit | 4773c6b66ef618f4c6345a99d9c246045e9c723b (patch) | |
tree | 6e3ccb31e84b8e5e3799a030eb4664c193633b03 /lib/libalpm/util.h | |
parent | 5c404268d965d9ca012e4819ac0c2f289a4c768c (diff) | |
download | pacman-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.h')
-rw-r--r-- | lib/libalpm/util.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/libalpm/util.h b/lib/libalpm/util.h index 0ea4b2a8..e6747827 100644 --- a/lib/libalpm/util.h +++ b/lib/libalpm/util.h @@ -105,11 +105,6 @@ struct archive_read_buffer { int ret; }; -enum _alpm_csum { - ALPM_CSUM_MD5, - ALPM_CSUM_SHA256, -}; - int _alpm_makepath(const char *path); int _alpm_makepath_mode(const char *path, mode_t mode); int _alpm_copyfile(const char *src, const char *dest); @@ -130,7 +125,7 @@ int _alpm_str_cmp(const void *s1, const void *s2); char *_alpm_filecache_find(alpm_handle_t *handle, const char *filename); const char *_alpm_filecache_setup(alpm_handle_t *handle); int _alpm_lstat(const char *path, struct stat *buf); -int _alpm_test_checksum(const char *filepath, const char *expected, enum _alpm_csum type); +int _alpm_test_checksum(const char *filepath, const char *expected, alpm_pkgvalidation_t type); int _alpm_archive_fgets(struct archive *a, struct archive_read_buffer *b); int _alpm_splitname(const char *target, char **name, char **version, unsigned long *name_hash); |