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 /rpm2cpio.c | |
parent | aeab1e959d1fb383a0ff21924bff0edd01404fab (diff) | |
download | rpm-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.c | 6 |
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) { |