summaryrefslogtreecommitdiff
path: root/lib/rpmlead.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2002-04-13 01:28:20 +0000
committerjbj <devnull@localhost>2002-04-13 01:28:20 +0000
commit46bbc20b324f456a9ff104f5e7300215950fb6c9 (patch)
tree868c53f9c61a2bf79ebf3a4928fb952628c72a91 /lib/rpmlead.c
parent8edea74bb45267034d2e4eb3e39e2883824e03ce (diff)
downloadrpm-46bbc20b324f456a9ff104f5e7300215950fb6c9.tar.gz
rpm-46bbc20b324f456a9ff104f5e7300215950fb6c9.tar.bz2
rpm-46bbc20b324f456a9ff104f5e7300215950fb6c9.zip
- use rpmdb-redhat to suggest dependency resolution(s).
CVS patchset: 5401 CVS date: 2002/04/13 01:28:20
Diffstat (limited to 'lib/rpmlead.c')
-rw-r--r--lib/rpmlead.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/rpmlead.c b/lib/rpmlead.c
index 9a19e8b4b..032ffb484 100644
--- a/lib/rpmlead.c
+++ b/lib/rpmlead.c
@@ -33,11 +33,8 @@ int writeLead(FD_t fd, const struct rpmlead *lead)
l.osnum = htons(l.osnum);
l.signature_type = htons(l.signature_type);
- /*@-sizeoftype@*/
- if (Fwrite(&l, sizeof(char), sizeof(l), fd) != sizeof(l)) {
+ if (Fwrite(&l, 1, sizeof(l), fd) != sizeof(l))
return 1;
- }
- /*@=sizeoftype@*/
return 0;
}