diff options
author | jbj <devnull@localhost> | 1999-11-10 22:09:49 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 1999-11-10 22:09:49 +0000 |
commit | e0b1d0be3607ef673555ca17078bfff6f854267e (patch) | |
tree | 828541f8c102a7b9adddc19b0cf623cdedc0fb44 /build/parsePreamble.c | |
parent | aeab1e959d1fb383a0ff21924bff0edd01404fab (diff) | |
download | librpm-tizen-e0b1d0be3607ef673555ca17078bfff6f854267e.tar.gz librpm-tizen-e0b1d0be3607ef673555ca17078bfff6f854267e.tar.bz2 librpm-tizen-e0b1d0be3607ef673555ca17078bfff6f854267e.zip |
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
Diffstat (limited to 'build/parsePreamble.c')
-rw-r--r-- | build/parsePreamble.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |