From 388dd30b4585f861c7a0c09d7da2d60a02fa459d Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 3 Feb 2009 17:02:19 +0100 Subject: [PATCH] check_installed_pkgname: returns a bool, so EINVAL is wrong. --HG-- extra : convert_revision : 6f3d615a27a1bf76962b6daf88929efa8d5cde8e --- lib/remove.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/remove.c b/lib/remove.c index fe07155403a..551551cdd52 100644 --- a/lib/remove.c +++ b/lib/remove.c @@ -45,7 +45,7 @@ check_installed_pkgname(const char *pkgname) plist = xbps_append_full_path(true, NULL, XBPS_REGPKGDB); if (plist == NULL) - return EINVAL; + return false; pkgd = xbps_find_pkg_from_plist(plist, pkgname); free(plist);