From cb580a5c1aca338066c2bbc7147f16456803197e Mon Sep 17 00:00:00 2001 From: Duncan Overbruck Date: Sat, 18 Apr 2020 17:49:27 +0200 Subject: [PATCH] bin/xbps-query: use puts instead of printf("%s\n", ...) --- bin/xbps-query/list.c | 8 ++++---- bin/xbps-query/show-deps.c | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bin/xbps-query/list.c b/bin/xbps-query/list.c index 3c8d7b76..6deaf1a1 100644 --- a/bin/xbps-query/list.c +++ b/bin/xbps-query/list.c @@ -102,7 +102,7 @@ list_manual_pkgs(struct xbps_handle *xhp UNUSED, xbps_dictionary_get_bool(obj, "automatic-install", &automatic); if (automatic == false) { xbps_dictionary_get_cstring_nocopy(obj, "pkgver", &pkgver); - printf("%s\n", pkgver); + puts(pkgver); } return 0; @@ -119,7 +119,7 @@ list_hold_pkgs(struct xbps_handle *xhp UNUSED, if (xbps_dictionary_get(obj, "hold")) { xbps_dictionary_get_cstring_nocopy(obj, "pkgver", &pkgver); - printf("%s\n", pkgver); + puts(pkgver); } return 0; @@ -136,7 +136,7 @@ list_repolock_pkgs(struct xbps_handle *xhp UNUSED, if (xbps_dictionary_get(obj, "repolock")) { xbps_dictionary_get_cstring_nocopy(obj, "pkgver", &pkgver); - printf("%s\n", pkgver); + puts(pkgver); } return 0; @@ -155,7 +155,7 @@ list_orphans(struct xbps_handle *xhp) for (unsigned int i = 0; i < xbps_array_count(orphans); i++) { xbps_dictionary_get_cstring_nocopy(xbps_array_get(orphans, i), "pkgver", &pkgver); - printf("%s\n", pkgver); + puts(pkgver); } return 0; diff --git a/bin/xbps-query/show-deps.c b/bin/xbps-query/show-deps.c index dd45e43d..db7b4b27 100644 --- a/bin/xbps-query/show-deps.c +++ b/bin/xbps-query/show-deps.c @@ -61,7 +61,7 @@ show_pkg_deps(struct xbps_handle *xhp, const char *pkgname, bool repomode, bool for (unsigned int i = 0; i < xbps_array_count(rdeps); i++) { const char *pkgdep = NULL; xbps_array_get_cstring_nocopy(rdeps, i, &pkgdep); - printf("%s\n", pkgdep); + puts(pkgdep); } return 0; } @@ -82,7 +82,7 @@ show_pkg_revdeps(struct xbps_handle *xhp, const char *pkg, bool repomode) for (unsigned int i = 0; i < xbps_array_count(revdeps); i++) { xbps_array_get_cstring_nocopy(revdeps, i, &pkgdep); - printf("%s\n", pkgdep); + puts(pkgdep); } xbps_object_release(revdeps); return 0;