From bd317f17ee89b4a125aafae2e7950c9ccc31e53c Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 22 Dec 2008 00:17:20 +0100 Subject: [PATCH] xbps_search_string_in_pkgs(): pass "arg" directly. --HG-- extra : convert_revision : d1345ddf585304ec1617386b91aa827209362442 --- lib/plist.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/plist.c b/lib/plist.c index a1967a7541c..2cc64209be1 100644 --- a/lib/plist.c +++ b/lib/plist.c @@ -459,7 +459,7 @@ bool xbps_search_string_in_pkgs(prop_object_t obj, void *arg, bool *loop_done) { prop_dictionary_t dict; - const char *repofile, *plist, *pkgstring = arg; + const char *repofile, *plist; assert(prop_object_type(obj) == PROP_TYPE_STRING); assert(pkgstring != NULL); @@ -479,7 +479,7 @@ xbps_search_string_in_pkgs(prop_object_t obj, void *arg, bool *loop_done) printf("From %s repository ...\n", repofile); xbps_callback_array_iter_in_dict(dict, "packages", - xbps_show_pkg_namedesc, (void *)pkgstring); + xbps_show_pkg_namedesc, arg); return true; }