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 /rpmio | |
parent | aeab1e959d1fb383a0ff21924bff0edd01404fab (diff) | |
download | rpm-e0b1d0be3607ef673555ca17078bfff6f854267e.tar.gz |
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 'rpmio')
-rw-r--r-- | rpmio/macro.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rpmio/macro.c b/rpmio/macro.c index 5b9320ff2..72129603d 100644 --- a/rpmio/macro.c +++ b/rpmio/macro.c @@ -1349,7 +1349,7 @@ int isCompressed(const char *file, int *compressed) rpmError(RPMERR_BADSPEC, _("File %s: %s"), file, strerror(errno)); return 1; } - nb = Fread(magic, sizeof(magic), 1, fd); + nb = Fread(magic, sizeof(char), sizeof(magic), fd); rderrno = errno; Fclose(fd); |