diff options
author | Michael Schroeder <mls@suse.de> | 2013-11-14 16:35:09 +0100 |
---|---|---|
committer | Michael Schroeder <mls@suse.de> | 2013-11-14 16:35:09 +0100 |
commit | 1aed650c8157abfd95c57646d8c8e4ffc488e084 (patch) | |
tree | 0f292ff6e94a41e99778301fed5df3f1814169e4 /examples | |
parent | 2ba4cf01411f268c7976e98af5bf27455cc54d69 (diff) | |
download | libsolv-1aed650c8157abfd95c57646d8c8e4ffc488e084.tar.gz libsolv-1aed650c8157abfd95c57646d8c8e4ffc488e084.tar.bz2 libsolv-1aed650c8157abfd95c57646d8c8e4ffc488e084.zip |
Create a real type for a checksum handle
Should be completely compatible, as the handle
was of type "void *" before.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/solv.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/solv.c b/examples/solv.c index 6bacc19..09258cb 100644 --- a/examples/solv.c +++ b/examples/solv.c @@ -527,7 +527,7 @@ verify_checksum(int fd, const char *file, const unsigned char *chksum, Id chksum { char buf[1024]; const unsigned char *sum; - void *h; + Chksum *h; int l; h = solv_chksum_create(chksumtype); @@ -1049,7 +1049,7 @@ void calc_checksum_fp(FILE *fp, Id chktype, unsigned char *out) { char buf[4096]; - void *h = solv_chksum_create(chktype); + Chksum *h = solv_chksum_create(chktype); int l; solv_chksum_add(h, CHKSUM_IDENT, strlen(CHKSUM_IDENT)); @@ -1062,7 +1062,7 @@ calc_checksum_fp(FILE *fp, Id chktype, unsigned char *out) void calc_checksum_stat(struct stat *stb, Id chktype, unsigned char *cookie, unsigned char *out) { - void *h = solv_chksum_create(chktype); + Chksum *h = solv_chksum_create(chktype); solv_chksum_add(h, CHKSUM_IDENT, strlen(CHKSUM_IDENT)); if (cookie) solv_chksum_add(h, cookie, 32); |