summaryrefslogtreecommitdiff
path: root/rpmio
diff options
context:
space:
mode:
authorjbj <devnull@localhost>1999-11-10 22:09:49 +0000
committerjbj <devnull@localhost>1999-11-10 22:09:49 +0000
commite0b1d0be3607ef673555ca17078bfff6f854267e (patch)
tree828541f8c102a7b9adddc19b0cf623cdedc0fb44 /rpmio
parentaeab1e959d1fb383a0ff21924bff0edd01404fab (diff)
downloadrpm-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.c2
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);