summaryrefslogtreecommitdiff
path: root/lib/tgi.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tgi.c')
-rw-r--r--lib/tgi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tgi.c b/lib/tgi.c
index cc23fd987..83c3e68f5 100644
--- a/lib/tgi.c
+++ b/lib/tgi.c
@@ -84,7 +84,7 @@ main(int argc, char *argv[])
rpmts ts = NULL;
rpmVSFlags vsflags;
rpmgi gi = NULL;
- int gitag = RPMDBI_PACKAGES;
+ rpm_tag_t gitag = RPMDBI_PACKAGES;
const char ** av;
int ac;
int rc = 0;
@@ -98,7 +98,7 @@ main(int argc, char *argv[])
if (gitagstr != NULL) {
gitag = rpmTagGetValue(gitagstr);
- if (gitag < 0) {
+ if (gitag == RPMTAG_NOT_FOUND) {
fprintf(stderr, _("unknown --tag argument: %s\n"), gitagstr);
exit(EXIT_FAILURE);
}