summaryrefslogtreecommitdiff
path: root/lib/libalpm/pkghash.h
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2011-01-30 22:42:45 +1000
committerAllan McRae <allan@archlinux.org>2011-02-04 09:55:45 +1000
commit01c3c7e4f28d837f0b8a6aaaf27d16894d4b762d (patch)
treedce1eecbcc7961ac318d7732e14dd9ded075048c /lib/libalpm/pkghash.h
parent11e5e86151f83219b1cedbca31be7530911e25eb (diff)
downloadpacman-01c3c7e4f28d837f0b8a6aaaf27d16894d4b762d.tar.xz
Actually remove packages from pkghash on removal
Fully removes a package from the hash. Also unify prototype with removal from an alpm_list_t, fixing issues when removing a package from the pkgcache. Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm/pkghash.h')
-rw-r--r--lib/libalpm/pkghash.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/pkghash.h b/lib/libalpm/pkghash.h
index 7f90cb17..a6c1db71 100644
--- a/lib/libalpm/pkghash.h
+++ b/lib/libalpm/pkghash.h
@@ -47,7 +47,7 @@ pmpkghash_t *_alpm_pkghash_create(size_t size);
pmpkghash_t *_alpm_pkghash_add(pmpkghash_t *hash, pmpkg_t *pkg);
pmpkghash_t *_alpm_pkghash_add_sorted(pmpkghash_t *hash, pmpkg_t *pkg);
-pmpkghash_t *_alpm_pkghash_remove(pmpkghash_t *hash, pmpkg_t *pkg, pmpkg_t *data);
+pmpkghash_t *_alpm_pkghash_remove(pmpkghash_t *hash, pmpkg_t *pkg, pmpkg_t **data);
void _alpm_pkghash_free(pmpkghash_t *hash);