summaryrefslogtreecommitdiff
path: root/rpmio/digest.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2001-10-16 17:42:18 +0000
committerjbj <devnull@localhost>2001-10-16 17:42:18 +0000
commit96a3f7a55d444296f97c3e28c8d810e220e1cb9f (patch)
tree01eb83731cd7193dda21a7ab3d8e741c41c0914f /rpmio/digest.c
parent9f45bcd3ecf3f3548ed7a8490b882a6ca9ffeb94 (diff)
downloadlibrpm-tizen-96a3f7a55d444296f97c3e28c8d810e220e1cb9f.tar.gz
librpm-tizen-96a3f7a55d444296f97c3e28c8d810e220e1cb9f.tar.bz2
librpm-tizen-96a3f7a55d444296f97c3e28c8d810e220e1cb9f.zip
Factor -type problems into explicit code annotations.
CVS patchset: 5117 CVS date: 2001/10/16 17:42:18
Diffstat (limited to 'rpmio/digest.c')
-rw-r--r--rpmio/digest.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/rpmio/digest.c b/rpmio/digest.c
index 06d5ac394..4c51914ee 100644
--- a/rpmio/digest.c
+++ b/rpmio/digest.c
@@ -55,9 +55,11 @@ rpmDigestInit(rpmDigestFlags flags)
/*@-sizeoftype@*/ /* FIX: union, not void pointer */
ctx->param = xcalloc(1, sizeof(md5Param));
/*@=sizeoftype@*/
+ /*@-type@*/ /* FIX: cast? */
ctx->Reset = (void *) md5Reset;
ctx->Update = (void *) md5Update;
ctx->Digest = (void *) md5Digest;
+ /*@=type@*/
}
if (flags & RPMDIGEST_SHA1) {
@@ -66,9 +68,11 @@ rpmDigestInit(rpmDigestFlags flags)
/*@-sizeoftype@*/ /* FIX: union, not void pointer */
ctx->param = xcalloc(1, sizeof(sha1Param));
/*@=sizeoftype@*/
+ /*@-type@*/ /* FIX: cast? */
ctx->Reset = (void *) sha1Reset;
ctx->Update = (void *) sha1Update;
ctx->Digest = (void *) sha1Digest;
+ /*@=type@*/
}
/*@-noeffectuncon@*/ /* FIX: check rc */