ref: refs/heads/master
commit 8b0e582bdb36a682bafdf069cf93effec6d44248
Author: Dirk Mueller
Date: Thu May 28 21:41:39 2009 +0200
reduce -pedantic compile warnings
---
tools/repo_rpmdb.c | 4 ++--
tools/repo_rpmmd.c | 3 ++-
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/tools/repo_rpmdb.c b/tools/repo_rpmdb.c
index 53451e1..3c6643c 100644
--- a/tools/repo_rpmdb.c
+++ b/tools/repo_rpmdb.c
@@ -309,7 +309,7 @@ setutf8string(Repodata *repodata, Id handle, Id tag, const char *str)
const unsigned char *cp;
int state = 0;
int c;
- char *buf = 0, *bp;
+ unsigned char *buf = 0, *bp;
/* check if it's already utf8, code taken from screen ;-) */
cp = (const unsigned char *)str;
@@ -358,7 +358,7 @@ setutf8string(Repodata *repodata, Id handle, Id tag, const char *str)
/* not utf8, assume latin1 */
buf = sat_malloc(2 * strlen(str) + 1);
cp = (const unsigned char *)str;
- str = buf;
+ str = (char*) buf;
bp = buf;
while ((c = *cp++) != 0)
{
diff --git a/tools/repo_rpmmd.c b/tools/repo_rpmmd.c
index eed0ab1..d1caeea 100644
--- a/tools/repo_rpmmd.c
+++ b/tools/repo_rpmmd.c
@@ -833,7 +833,8 @@ startElement(void *userData, const char *name, const char **atts)
}
else
{
- fprintf( stderr, " tag without 'name' attribute, atts = %p, *atts = %p\n", atts, *atts);
+ fprintf( stderr, " tag without 'name' attribute, atts = %p, *atts = %p\n",
+ (void*) atts, *atts);
break;
}
if ( (str = find_attr("size", atts)) )
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org
For additional commands, e-mail: zypp-commit+help@opensuse.org