diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2007-07-11 12:32:17 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2007-07-11 12:32:17 +0300 |
commit | e1508eff864621c9a91c9a4f016fda915ea28bb2 (patch) | |
tree | 57d08a627ca854a8a9e2680215f7fc2878149d7b /rpmio | |
parent | 220c0fd514e9e1d4b38a77c22df8679ad52421ab (diff) | |
download | rpm-e1508eff864621c9a91c9a4f016fda915ea28bb2.tar.gz rpm-e1508eff864621c9a91c9a4f016fda915ea28bb2.tar.bz2 rpm-e1508eff864621c9a91c9a4f016fda915ea28bb2.zip |
Shut up fdUpdateDigest() differing signedness compiler warnings.
Derived from rpm5.org.
Diffstat (limited to 'rpmio')
-rw-r--r-- | rpmio/rpmio.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/rpmio/rpmio.c b/rpmio/rpmio.c index a75157aaa..9201784d0 100644 --- a/rpmio/rpmio.c +++ b/rpmio/rpmio.c @@ -388,7 +388,7 @@ static ssize_t fdRead(void * cookie, /*@out@*/ char * buf, size_t count) /*@=boundswrite@*/ fdstat_exit(fd, FDSTAT_READ, rc); - if (fd->ndigests && rc > 0) fdUpdateDigests(fd, buf, rc); + if (fd->ndigests && rc > 0) fdUpdateDigests(fd, (void *)buf, rc); DBGIO(fd, (stderr, "==>\tfdRead(%p,%p,%ld) rc %ld %s\n", cookie, buf, (long)count, (long)rc, fdbg(fd))); @@ -405,7 +405,7 @@ static ssize_t fdWrite(void * cookie, const char * buf, size_t count) if (fd->bytesRemain == 0) return 0; /* XXX simulate EOF */ - if (fd->ndigests && count > 0) fdUpdateDigests(fd, buf, count); + if (fd->ndigests && count > 0) fdUpdateDigests(fd, (void *)buf, count); if (count == 0) return 0; @@ -2452,7 +2452,7 @@ DBGIO(fd, (stderr, "==>\tgzdRead(%p,%p,%u) rc %lx %s\n", cookie, buf, (unsigned) } } else if (rc >= 0) { fdstat_exit(fd, FDSTAT_READ, rc); - if (fd->ndigests && rc > 0) fdUpdateDigests(fd, buf, rc); + if (fd->ndigests && rc > 0) fdUpdateDigests(fd, (void *)buf, rc); } return rc; } @@ -2467,7 +2467,7 @@ static ssize_t gzdWrite(void * cookie, const char * buf, size_t count) if (fd == NULL || fd->bytesRemain == 0) return 0; /* XXX simulate EOF */ - if (fd->ndigests && count > 0) fdUpdateDigests(fd, buf, count); + if (fd->ndigests && count > 0) fdUpdateDigests(fd, (void *)buf, count); gzfile = gzdFileno(fd); if (gzfile == NULL) return -2; /* XXX can't happen */ @@ -2689,7 +2689,7 @@ static ssize_t bzdRead(void * cookie, /*@out@*/ char * buf, size_t count) } else if (rc >= 0) { fdstat_exit(fd, FDSTAT_READ, rc); /*@-compdef@*/ - if (fd->ndigests && rc > 0) fdUpdateDigests(fd, buf, rc); + if (fd->ndigests && rc > 0) fdUpdateDigests(fd, (void *)buf, rc); /*@=compdef@*/ } return rc; @@ -2708,7 +2708,7 @@ static ssize_t bzdWrite(void * cookie, const char * buf, size_t count) if (fd->bytesRemain == 0) return 0; /* XXX simulate EOF */ - if (fd->ndigests && count > 0) fdUpdateDigests(fd, buf, count); + if (fd->ndigests && count > 0) fdUpdateDigests(fd, (void *)buf, count); bzfile = bzdFileno(fd); fdstat_enter(fd, FDSTAT_WRITE); |