From 37b7cccc831d5a7de4a7312caf50bfd10e6d8fab Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 18 Nov 2012 17:08:45 +0100 Subject: [PATCH] pkg_metadir: this must use HASH_ADD_STR instead! --- lib/package_metadir.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/package_metadir.c b/lib/package_metadir.c index e7f2e59c..e6d44a2f 100644 --- a/lib/package_metadir.c +++ b/lib/package_metadir.c @@ -109,12 +109,7 @@ xbps_metadir_get_pkgd(struct xbps_handle *xhp, const char *name) assert(pm); strlcpy(pm->name, name, sizeof(pm->name)); pm->d = d; - - HASH_ADD_KEYPTR(hh, - pkgmetas, - __UNCONST(name), - strlen(__UNCONST(name)), - pm); + HASH_ADD_STR(pkgmetas, name, pm); return d; }