From 1b217d1906ccd7f012de07ce375d22c159e808bf Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 15 Nov 2012 09:25:59 +0100 Subject: [PATCH] transaction_ops: shortest static function name. --- lib/transaction_ops.c | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/lib/transaction_ops.c b/lib/transaction_ops.c index 19be4b77..64d378ab 100644 --- a/lib/transaction_ops.c +++ b/lib/transaction_ops.c @@ -58,12 +58,8 @@ enum { }; static int -transaction_find_pkg(struct xbps_handle *xhp, - const char *pkg, - bool bypattern, - bool best, - bool exact, - int action) +trans_find_pkg(struct xbps_handle *xhp, const char *pkg, bool bypattern, + bool best, bool exact, int action) { prop_dictionary_t pkg_pkgdb, pkg_repod; prop_array_t unsorted; @@ -223,8 +219,8 @@ xbps_transaction_update_packages(struct xbps_handle *xhp) foundhold = false; continue; } - rv = transaction_find_pkg(xhp, pkgname, false, true, - false, TRANS_UPDATE); + rv = trans_find_pkg(xhp, pkgname, false, true, + false, TRANS_UPDATE); if (rv == 0) newpkg_found = true; else if (rv == ENOENT || rv == EEXIST || rv == ENODEV) { @@ -242,8 +238,7 @@ xbps_transaction_update_packages(struct xbps_handle *xhp) int xbps_transaction_update_pkg(struct xbps_handle *xhp, const char *pkgname) { - return transaction_find_pkg(xhp, pkgname, false, - true, false, TRANS_UPDATE); + return trans_find_pkg(xhp, pkgname, false, true, false, TRANS_UPDATE); } int @@ -255,7 +250,6 @@ xbps_transaction_install_pkg(struct xbps_handle *xhp, pkg_state_t state; char *pkgname; bool bypattern, best, exact; - int rv; if (xbps_pkgpattern_version(pkg)) { bypattern = true; @@ -285,8 +279,8 @@ xbps_transaction_install_pkg(struct xbps_handle *xhp, return EEXIST; } } - rv = transaction_find_pkg(xhp, pkg, bypattern, best, exact, TRANS_INSTALL); - return rv; + + return trans_find_pkg(xhp, pkg, bypattern, best, exact, TRANS_INSTALL); } int