summaryrefslogtreecommitdiff
path: root/lib/rpmlead.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2001-04-17 18:30:23 +0000
committerjbj <devnull@localhost>2001-04-17 18:30:23 +0000
commit63db1277013da1355d86ef5f3faf5dff26581c17 (patch)
tree221c1a7f3540178084b0bca8d8f07c22b04355b0 /lib/rpmlead.c
parentc360a8907b132495e411824c92dfe4189e76ac3d (diff)
downloadrpm-63db1277013da1355d86ef5f3faf5dff26581c17.tar.gz
rpm-63db1277013da1355d86ef5f3faf5dff26581c17.tar.bz2
rpm-63db1277013da1355d86ef5f3faf5dff26581c17.zip
- fix: Fwrite's are optimized out by aggressive compiler(irix) (#34711).
CVS patchset: 4684 CVS date: 2001/04/17 18:30:23
Diffstat (limited to 'lib/rpmlead.c')
-rw-r--r--lib/rpmlead.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rpmlead.c b/lib/rpmlead.c
index 1336b61ab..9b262e10f 100644
--- a/lib/rpmlead.c
+++ b/lib/rpmlead.c
@@ -35,7 +35,7 @@ int writeLead(FD_t fd, struct rpmlead *lead)
l.osnum = htons(l.osnum);
l.signature_type = htons(l.signature_type);
- if (Fwrite(&l, sizeof(char), sizeof(l), fd) < 0) {
+ if (Fwrite(&l, sizeof(char), sizeof(l), fd) != sizeof(l)) {
return 1;
}