From 628a6cebf798c23991afc9b7206e3352f7a1fce8 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 27 Jan 2011 12:19:05 +0100 Subject: [PATCH] Rename xbps_find_orphan_packages() to xbps_find_pkg_orphans(). --- bin/xbps-bin/main.c | 2 +- bin/xbps-bin/remove.c | 2 +- include/xbps_api.h | 2 +- lib/package_orphans.c | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/xbps-bin/main.c b/bin/xbps-bin/main.c index fc65632f..04e9ee08 100644 --- a/bin/xbps-bin/main.c +++ b/bin/xbps-bin/main.c @@ -118,7 +118,7 @@ show_orphans(void) prop_object_t obj; const char *pkgver; - orphans = xbps_find_orphan_packages(); + orphans = xbps_find_pkg_orphans(); if (orphans == NULL) return EINVAL; diff --git a/bin/xbps-bin/remove.c b/bin/xbps-bin/remove.c index 7ce52df3..a43db1e1 100644 --- a/bin/xbps-bin/remove.c +++ b/bin/xbps-bin/remove.c @@ -74,7 +74,7 @@ xbps_autoremove_pkgs(bool yes, bool purge) * as dependency and any installed package does not depend * on it currently. */ - orphans = xbps_find_orphan_packages(); + orphans = xbps_find_pkg_orphans(); if (orphans == NULL) return errno; diff --git a/include/xbps_api.h b/include/xbps_api.h index 31f94cc0..70cd00fb 100644 --- a/include/xbps_api.h +++ b/include/xbps_api.h @@ -303,7 +303,7 @@ const char *xbps_fetch_error_string(void); * @return A proplib array of dictionaries with all orphans found, * on error NULL is returned and errno is set appropiately. */ -prop_array_t xbps_find_orphan_packages(void); +prop_array_t xbps_find_pkg_orphans(void); /** * @ingroup vermatch diff --git a/lib/package_orphans.c b/lib/package_orphans.c index d8ad45ea..0609bd28 100644 --- a/lib/package_orphans.c +++ b/lib/package_orphans.c @@ -43,7 +43,7 @@ * but currently no other packages are depending on. * * The following image shown below shows the registered packages database - * dictionary (the array returned by xbps_find_orphan_packages() will + * dictionary (the array returned by xbps_find_pkg_orphans() will * contain a package dictionary per orphan found): * * @image html images/xbps_regpkgdb_dictionary.png @@ -133,7 +133,7 @@ find_orphan_pkg(prop_object_t obj, void *arg, bool *loop_done) } prop_array_t -xbps_find_orphan_packages(void) +xbps_find_pkg_orphans(void) { prop_array_t array; prop_dictionary_t dict;