summaryrefslogtreecommitdiff
path: root/rpm2cpio.c
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 /rpm2cpio.c
parentaeab1e959d1fb383a0ff21924bff0edd01404fab (diff)
downloadrpm-e0b1d0be3607ef673555ca17078bfff6f854267e.tar.gz
rpm-e0b1d0be3607ef673555ca17078bfff6f854267e.tar.bz2
rpm-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 'rpm2cpio.c')
-rw-r--r--rpm2cpio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/rpm2cpio.c b/rpm2cpio.c
index 872d0db36..8c256355d 100644
--- a/rpm2cpio.c
+++ b/rpm2cpio.c
@@ -40,14 +40,14 @@ int main(int argc, char **argv)
break;
}
-#if 0
+#ifdef DYING
gzdi = gzdFdopen(fdi, "r"); /* XXX gzdi == fdi */
#else
gzdi = Fdopen(fdi, "r.gzdio"); /* XXX gzdi == fdi */
#endif
- while ((ct = Fread(buffer, sizeof(buffer), 1, gzdi)) > 0) {
- Fwrite(buffer, ct, 1, fdo);
+ while ((ct = Fread(buffer, sizeof(buffer[0]), sizeof(buffer), gzdi)) > 0) {
+ Fwrite(buffer, sizeof(buffer[0]), ct, fdo);
}
if (ct < 0) {