diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2007-07-11 12:44:45 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2007-07-11 12:44:45 +0300 |
commit | 8b76976f6c09a92352bbdd817d4b6fe31659d277 (patch) | |
tree | 4cbf1c7c34bf6ee27179b116b05a885461f980de /rpmio | |
parent | c8b871d5496b4920ef234f049ae2bb1483702a56 (diff) | |
download | rpm-8b76976f6c09a92352bbdd817d4b6fe31659d277.tar.gz rpm-8b76976f6c09a92352bbdd817d4b6fe31659d277.tar.bz2 rpm-8b76976f6c09a92352bbdd817d4b6fe31659d277.zip |
Cast assignment to destination type to fix warnings.
Diffstat (limited to 'rpmio')
-rw-r--r-- | rpmio/rpmdav.c | 4 | ||||
-rw-r--r-- | rpmio/rpmrpc.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/rpmio/rpmdav.c b/rpmio/rpmdav.c index cf08fb139..936b44e78 100644 --- a/rpmio/rpmdav.c +++ b/rpmio/rpmdav.c @@ -1417,7 +1417,7 @@ struct dirent * avReaddir(DIR * dir) dp = (struct dirent *) avdir->data; av = (const char **) (dp + 1); ac = avdir->size; - dt = (char *) (av + (ac + 1)); + dt = (unsigned char *) (av + (ac + 1)); i = avdir->offset + 1; /*@-boundsread@*/ @@ -1470,7 +1470,7 @@ fprintf(stderr, "*** avOpendir(%s)\n", path); /*@-abstract@*/ dp = (struct dirent *) (avdir + 1); av = (const char **) (dp + 1); - dt = (char *) (av + (ac + 1)); + dt = (unsigned char *) (av + (ac + 1)); t = (char *) (dt + ac + 1); /*@=abstract@*/ diff --git a/rpmio/rpmrpc.c b/rpmio/rpmrpc.c index d04594e5c..0d2bcf37a 100644 --- a/rpmio/rpmrpc.c +++ b/rpmio/rpmrpc.c @@ -1190,7 +1190,7 @@ fprintf(stderr, "*** ftpOpendir(%s)\n", path); /*@-abstract@*/ dp = (struct dirent *) (avdir + 1); av = (const char **) (dp + 1); - dt = (char *) (av + (ac + 1)); + dt = (unsigned char *) (av + (ac + 1)); t = (char *) (dt + ac + 1); /*@=abstract@*/ |