From 1a26816aa34263a492bc6d99c4e5e8df2c8ab36e Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 9 Apr 2009 12:59:46 +0200 Subject: [PATCH] xbps-repo: use list_strings_sep_in_array() for 'list' target. --HG-- extra : convert_revision : 0f06fdb6172b0ef8e55af44037166508c4c9996b --- bin/xbps-repo/main.c | 2 +- bin/xbps-repo/util.c | 1 - bin/xbps-repo/util.h | 3 ++- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/xbps-repo/main.c b/bin/xbps-repo/main.c index 62fb1ab06b7..766d4bf0c7b 100644 --- a/bin/xbps-repo/main.c +++ b/bin/xbps-repo/main.c @@ -229,7 +229,7 @@ main(int argc, char **argv) usage(); (void)xbps_callback_array_iter_in_repolist( - list_strings_in_array, NULL); + list_strings_sep_in_array, NULL); } else if ((strcasecmp(argv[0], "rm") == 0) || (strcasecmp(argv[0], "remove") == 0)) { diff --git a/bin/xbps-repo/util.c b/bin/xbps-repo/util.c index 55cba9a4645..7384d30bc0a 100644 --- a/bin/xbps-repo/util.c +++ b/bin/xbps-repo/util.c @@ -42,7 +42,6 @@ struct show_files_cb { static void show_pkg_info(prop_dictionary_t); static int show_pkg_files(prop_object_t, void *, bool *); static int show_pkg_namedesc(prop_object_t, void *, bool *); -static int list_strings_sep_in_array(prop_object_t, void *, bool *); static void show_pkg_info(prop_dictionary_t dict) diff --git a/bin/xbps-repo/util.h b/bin/xbps-repo/util.h index cac86095c5b..a4d4ce61533 100644 --- a/bin/xbps-repo/util.h +++ b/bin/xbps-repo/util.h @@ -1,5 +1,5 @@ /*- - * Copyright (c) 2008 Juan Romero Pardines. + * Copyright (c) 2008-2009 Juan Romero Pardines. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -31,5 +31,6 @@ int show_pkg_info_from_metadir(const char *); int show_pkg_files_from_metadir(const char *, bool); int show_pkg_info_from_repolist(prop_object_t, void *, bool *); int list_strings_in_array(prop_object_t, void *, bool *); +int list_strings_sep_in_array(prop_object_t, void *, bool *); #endif /* !_XBPS_REPO_UTIL_H_ */