summaryrefslogtreecommitdiff
path: root/build/pack.c
diff options
context:
space:
mode:
Diffstat (limited to 'build/pack.c')
-rw-r--r--build/pack.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/build/pack.c b/build/pack.c
index e0b40c71f..d784e203b 100644
--- a/build/pack.c
+++ b/build/pack.c
@@ -514,13 +514,13 @@ int writeRPM(Header *hdrp, const char *fileName, int type,
sigtarget, Fstrerror(fd));
}
- fdInitSHA1(fd, 0);
+ fdInitDigest(fd, PGPHASHALGO_SHA1, 0);
if (headerWrite(fd, h, HEADER_MAGIC_NO)) {
rc = RPMERR_NOSPACE;
rpmError(RPMERR_NOSPACE, _("Unable to write final header\n"));
}
(void) Fflush(fd);
- fdFiniSHA1(fd, (void **)&sha1, NULL, 1);
+ fdFiniDigest(fd, (void **)&sha1, NULL, 1);
(void) Fclose(fd);
fd = NULL;