summaryrefslogtreecommitdiff
path: root/rpm2cpio.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>1999-10-27 23:18:10 +0000
committerjbj <devnull@localhost>1999-10-27 23:18:10 +0000
commit0d0b405c201b43f2eebc61257f5992931e1cdb0c (patch)
tree7b19eee73f74dbd86e65255cff8be16b58292035 /rpm2cpio.c
parent82c75cb6a261465700ca469793b54ad68bef99a8 (diff)
downloadlibrpm-tizen-0d0b405c201b43f2eebc61257f5992931e1cdb0c.tar.gz
librpm-tizen-0d0b405c201b43f2eebc61257f5992931e1cdb0c.tar.bz2
librpm-tizen-0d0b405c201b43f2eebc61257f5992931e1cdb0c.zip
use compressed filenames on install side.
start unifying FD types, CFD_t now gone. CVS patchset: 3402 CVS date: 1999/10/27 23:18:10
Diffstat (limited to 'rpm2cpio.c')
-rw-r--r--rpm2cpio.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/rpm2cpio.c b/rpm2cpio.c
index 59eb6810d..09e86681a 100644
--- a/rpm2cpio.c
+++ b/rpm2cpio.c
@@ -42,18 +42,18 @@ int main(int argc, char **argv)
gzdi = gzdFdopen(fdi, "r"); /* XXX gzdi == fdi */
- while ((ct = gzdRead(gzdi, &buffer, sizeof(buffer))) > 0) {
- fdWrite(fdo, &buffer, ct);
+ while ((ct = Fread(buffer, sizeof(buffer), 1, gzdi)) > 0) {
+ Fwrite(buffer, ct, 1, fdo);
}
if (ct < 0) {
- fprintf (stderr, "rpm2cpio: zlib: %s\n", gzdStrerror(gzdi));
+ fprintf (stderr, "rpm2cpio: zlib: %s\n", Fstrerror(gzdi));
rc = EXIT_FAILURE;
} else {
rc = EXIT_SUCCESS;
}
- gzdClose(gzdi); /* XXX gzdi == fdi */
+ Fclose(gzdi); /* XXX gzdi == fdi */
return rc;
}