From 3363604c7076329e431afdc975f205b54f088631 Mon Sep 17 00:00:00 2001 From: jbj Date: Thu, 4 Nov 1999 21:26:08 +0000 Subject: Use Fopen almost everywhere. Rip out --enable-bzip2-payload, we'll use Fopen w macros instead. Work out ref counting for ftpControl so that control channel is persistent. build/build.c: Use fpio to write build stage script. parseSpec.c: Rework include stack to use FD_t, not FILE *. tread.c: Delete, use ufdio->read instead. rpmio.c: Filter out fdio fd == NULL assertion failures. rpmrc.c: Don't fail if HOME is not environment. rpmrc.c: Rework ufdio FTP rcfile I/O to be more similar to stdio. CVS patchset: 3417 CVS date: 1999/11/04 21:26:08 --- lib/rpmlead.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/rpmlead.c') diff --git a/lib/rpmlead.c b/lib/rpmlead.c index 574577f6c..e1a970679 100644 --- a/lib/rpmlead.c +++ b/lib/rpmlead.c @@ -44,7 +44,7 @@ int writeLead(FD_t fd, struct rpmlead *lead) int readLead(FD_t fd, struct rpmlead *lead) { - if (timedRead(fd, lead, sizeof(*lead)) != sizeof(*lead)) { + if (timedRead(fd, (char *)lead, sizeof(*lead)) != sizeof(*lead)) { rpmError(RPMERR_READERROR, _("read failed: %s (%d)"), strerror(errno), errno); return 1; -- cgit v1.2.3