From e0b1d0be3607ef673555ca17078bfff6f854267e Mon Sep 17 00:00:00 2001 From: jbj Date: Wed, 10 Nov 1999 22:09:49 +0000 Subject: Swap 2nd and 3rd arg to Fread/Fwrite to preserve read/write type return. Use Fstrerror to retrieve fd->syserrno. Make ftpFileDoneNeeded per-fd rather than per-url. Make data fd unique rather than per-url. Use appropriate protocol commands for ufdio writing. CVS patchset: 3421 CVS date: 1999/11/10 22:09:49 --- build/parsePreamble.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'build/parsePreamble.c') diff --git a/build/parsePreamble.c b/build/parsePreamble.c index e0063ff0f..5299deb6b 100644 --- a/build/parsePreamble.c +++ b/build/parsePreamble.c @@ -247,7 +247,7 @@ static int readIcon(Header h, const char *file) fd = Fopen(fn, "r.fdio"); /* XXX Fstrerror */ /* XXX Ferror check */ - nb = Fread(icon, statbuf.st_size, 1, fd); + nb = Fread(icon, sizeof(char), statbuf.st_size, fd); Fclose(fd); if (nb != statbuf.st_size) { rpmError(RPMERR_BADSPEC, _("Unable to read icon: %s"), fn); -- cgit v1.2.3