aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPer Øyvind Karlsen <peroyvind@mandriva.org>2008-02-28 02:28:10 +0000
committerPer Øyvind Karlsen <peroyvind@mandriva.org>2008-02-28 02:28:10 +0000
commit1ffd47d67604d9c224e2d9a6d9ba45b6b34e62cd (patch)
tree207cb9f72cf97fac25e593e7d0d0a3ddcd2d5765
parent3b9d3d794d4ef633b164767de395140efa0c6196 (diff)
downloadperl-URPM-1ffd47d67604d9c224e2d9a6d9ba45b6b34e62cd.tar
perl-URPM-1ffd47d67604d9c224e2d9a6d9ba45b6b34e62cd.tar.gz
perl-URPM-1ffd47d67604d9c224e2d9a6d9ba45b6b34e62cd.tar.bz2
perl-URPM-1ffd47d67604d9c224e2d9a6d9ba45b6b34e62cd.tar.xz
perl-URPM-1ffd47d67604d9c224e2d9a6d9ba45b6b34e62cd.zip
get rid of some warnings
-rw-r--r--rpm5compat.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/rpm5compat.h b/rpm5compat.h
index 828f648..31f423a 100644
--- a/rpm5compat.h
+++ b/rpm5compat.h
@@ -48,10 +48,6 @@ static inline int headerGetEntry(Header h, int_32 tag, hTYP_t type, void ** p, h
return rc;
}
-/*static Header headerRead(FD_t fd, enum hMagic magicp){
-
-}*/
-
static int headerAddEntry(Header h, int_32 tag, int_32 type, const void * p, int_32 c) {
HE_t he = memset(alloca(sizeof(*he)), 0, sizeof(*he));
@@ -84,8 +80,8 @@ static int headerNextIterator(HeaderIterator hi, hTAG_t tag, hTYP_t type, hPTR_t
HE_t he = memset(alloca(sizeof(*he)), 0, sizeof(*he));
he->tag = (rpmTag)tag;
- he->p.str = p;
- he->c = c;
+ he->p.str = (char*)p;
+ he->c = (char*)c;
return headerNext(hi, he, 0);
}