summaryrefslogtreecommitdiffstats
path: root/isys/otherinsmod.c
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2001-11-13 21:11:33 +0000
committerErik Troan <ewt@redhat.com>2001-11-13 21:11:33 +0000
commit97a3cd864677164834d5520dcef5e11221e78a28 (patch)
treee8aeae72518cc37c1151019e336405ab4e81457d /isys/otherinsmod.c
parent0c9da29f6bad397e0a0aa45d10271946145d6adb (diff)
downloadanaconda-97a3cd864677164834d5520dcef5e11221e78a28.tar.gz
anaconda-97a3cd864677164834d5520dcef5e11221e78a28.tar.xz
anaconda-97a3cd864677164834d5520dcef5e11221e78a28.zip
changes isys to use libgzip rather then libz
Diffstat (limited to 'isys/otherinsmod.c')
-rw-r--r--isys/otherinsmod.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/isys/otherinsmod.c b/isys/otherinsmod.c
index c09798eee..0a33e1ac3 100644
--- a/isys/otherinsmod.c
+++ b/isys/otherinsmod.c
@@ -1,7 +1,6 @@
#include <stdio.h>
#include <string.h>
#include <unistd.h>
-#include <zlib.h>
#include <fcntl.h>
#include <stdlib.h>
#include <sys/utsname.h>
@@ -17,7 +16,7 @@ int ourInsmodCommand(int argc, char ** argv) {
char * file;
char finalName[100];
char * chptr;
- gzFile fd;
+ int fd;
int rc, rmObj = 0;
int sparc64 = 0, i;
char * ballPath = NULL;
@@ -55,7 +54,7 @@ int ourInsmodCommand(int argc, char ** argv) {
/* Try two balls on sparc64, one elsewhere */
for (i = 0; ; i++) {
/* it might be having a ball */
- fd = gzopen(ballPath, "r");
+ fd = gunzip_open(ballPath, 0);
if (!fd) {
free(ballPath);
return 1;