summaryrefslogtreecommitdiff
path: root/lib/fsm.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2008-11-19 15:46:02 +0200
committerPanu Matilainen <pmatilai@redhat.com>2008-11-19 15:46:02 +0200
commit36d4908efe80c72a48bdce31132c4b6331c9c094 (patch)
treece7bdefd033bddb1ffff137806d50cd0cceed61c /lib/fsm.c
parent3eed102f115bac5dbf37b4866b3d2deaf5760ec8 (diff)
downloadrpm-36d4908efe80c72a48bdce31132c4b6331c9c094.tar.gz
rpm-36d4908efe80c72a48bdce31132c4b6331c9c094.tar.bz2
rpm-36d4908efe80c72a48bdce31132c4b6331c9c094.zip
Use matching type for fsm->digest to avoid unnecessary cast
Diffstat (limited to 'lib/fsm.c')
-rw-r--r--lib/fsm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/fsm.c b/lib/fsm.c
index 2892c07e1..762ab2eb4 100644
--- a/lib/fsm.c
+++ b/lib/fsm.c
@@ -765,7 +765,7 @@ static int fsmMapAttrs(FSM_t fsm)
*/
if (ts != NULL && !(rpmtsFlags(ts) & RPMTRANS_FLAG_NOMD5)) {
size_t diglen = rpmDigestLength(fsm->digestalgo);
- fsm->digest = (char *)(fi->digests ? (fi->digests + (diglen * i)) : NULL);
+ fsm->digest = (fi->digests ? (fi->digests + (diglen * i)) : NULL);
} else {
fsm->digest = NULL;
}