aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2016-10-18 18:38:22 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2016-10-18 18:38:22 +0200
commitbc0a75f258d03f12496d7fd9113d81114dcac641 (patch)
tree102e911ab4af141c67b17ce9790d6e82c8d0ac90
parenta9581d6300a6790b5b36e145103fb5a6a444449f (diff)
downloadperl-URPM-bc0a75f258d03f12496d7fd9113d81114dcac641.tar
perl-URPM-bc0a75f258d03f12496d7fd9113d81114dcac641.tar.gz
perl-URPM-bc0a75f258d03f12496d7fd9113d81114dcac641.tar.bz2
perl-URPM-bc0a75f258d03f12496d7fd9113d81114dcac641.tar.xz
perl-URPM-bc0a75f258d03f12496d7fd9113d81114dcac641.zip
fix another (old) compilation warnings
use rpmTagGetValue() to get the char* name of the tag
-rw-r--r--NEWS2
-rw-r--r--URPM.xs2
2 files changed, 3 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index ff9f00a..e7d0f3d 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- fix some compilation warnings
+
Version 5.10 - 18 October 2016
- support querying size of 4gb+ packages
diff --git a/URPM.xs b/URPM.xs
index f9ab5a0..6334a3b 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -589,7 +589,7 @@ return_list_tag(const URPM__Package pkg, rpmTag tag_name) {
mXPUSHs(newSVpv(pkg->summary, 0));
break;
default:
- croak("unexpected tag %s", tag_name);
+ croak("unexpected tag %s", rpmTagGetName(tag_name));
break;
}
if (data) {