aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPer Øyvind Karlsen <peroyvind@mandriva.org>2008-02-29 14:14:34 +0000
committerPer Øyvind Karlsen <peroyvind@mandriva.org>2008-02-29 14:14:34 +0000
commite217e7031c1993a1e5a26e045b79ce7edf173f63 (patch)
tree3367d5b287ccc089059e51f8b05c84a273975c01
parentcbebde14187862bb0310ca8422ddd51b2000c29b (diff)
downloadperl-URPM-e217e7031c1993a1e5a26e045b79ce7edf173f63.tar
perl-URPM-e217e7031c1993a1e5a26e045b79ce7edf173f63.tar.gz
perl-URPM-e217e7031c1993a1e5a26e045b79ce7edf173f63.tar.bz2
perl-URPM-e217e7031c1993a1e5a26e045b79ce7edf173f63.tar.xz
perl-URPM-e217e7031c1993a1e5a26e045b79ce7edf173f63.zip
be sure to use same data type for check_flag
-rw-r--r--URPM.xs6
1 files changed, 3 insertions, 3 deletions
diff --git a/URPM.xs b/URPM.xs
index 02acb61..83b96db 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -310,12 +310,12 @@ ranges_overlap(int_32 aflags, char *sa, int_32 bflags, char *sb, int b_nopromote
}
static int has_old_suggests;
-int is_old_suggests(int_32 flags) {
+int_32 is_old_suggests(int_32 flags) {
int is = flags & RPMSENSE_MISSINGOK;
if (is) has_old_suggests = is;
return is;
}
-int is_not_old_suggests(int_32 flags) {
+int_32 is_not_old_suggests(int_32 flags) {
return !is_old_suggests(flags);
}
@@ -791,7 +791,7 @@ return_problems(rpmps ps, int translate_message) {
}
static char *
-pack_list(Header header, int_32 tag_name, int_32 tag_flags, int_32 tag_version, int (*check_flag)(int)) {
+pack_list(Header header, int_32 tag_name, int_32 tag_flags, int_32 tag_version, int_32 (*check_flag)(int_32)) {
char buff[65536];
int_32 type, count;
char **list = NULL;