Remove cruft
authorGlenn L McGrath <bug1@ihug.co.nz>
Wed, 28 Mar 2001 07:37:48 +0000 (07:37 -0000)
committerGlenn L McGrath <bug1@ihug.co.nz>
Wed, 28 Mar 2001 07:37:48 +0000 (07:37 -0000)
archival/gunzip.c
archival/tar.c
gunzip.c
tar.c

index 9d81031d704795698ea4f66ae20306cfa96f2064..0af6adbf745cb94b4ada4b9fda174f9a02240256 100644 (file)
@@ -125,13 +125,14 @@ unsigned short mask_bits[] = {
 //static int error_number = 0;
 /* ========================================================================
  * Signal and error handler.
- */
 static void abort_gzip()
 {
        error_msg("gzip aborted\n");
 //     exit(ERROR);
        return;
 }
+*/
 
 static void make_crc_table()
 {
@@ -432,7 +433,6 @@ static int inflate_codes(huft_t *tl, huft_t *td, int bl, int bd)
                if (e == 16) {          /* then it's a literal */
                        window[w++] = (unsigned char) t->v.n;
                        if (w == WSIZE) {
-//                             flush_output(w);
                                outcnt=(w),
                                flush_window();
                                w = 0;
index ef611531a144d0264c7e8b1035076c2ec9ce2ff8..9be63ced86802ed1498b2de35c8dffca21356107 100644 (file)
@@ -284,11 +284,9 @@ extern int tar_main(int argc, char **argv)
                /* unzip tarFd in a seperate process */
                if (unzipFlag == TRUE) {
                        comp_file = fdopen(tarFd, "r");
-                       printf("1\n");
                        if ((tarFd = gz_open(comp_file, &pid)) == EXIT_FAILURE) {
                                error_msg_and_die("Couldnt unzip file");
                        }
-                       printf("2\n");
                }
 #endif                 
                status = readTarFile(tarFd, extractFlag, listFlag, tostdoutFlag,
index 9d81031d704795698ea4f66ae20306cfa96f2064..0af6adbf745cb94b4ada4b9fda174f9a02240256 100644 (file)
--- a/gunzip.c
+++ b/gunzip.c
@@ -125,13 +125,14 @@ unsigned short mask_bits[] = {
 //static int error_number = 0;
 /* ========================================================================
  * Signal and error handler.
- */
 static void abort_gzip()
 {
        error_msg("gzip aborted\n");
 //     exit(ERROR);
        return;
 }
+*/
 
 static void make_crc_table()
 {
@@ -432,7 +433,6 @@ static int inflate_codes(huft_t *tl, huft_t *td, int bl, int bd)
                if (e == 16) {          /* then it's a literal */
                        window[w++] = (unsigned char) t->v.n;
                        if (w == WSIZE) {
-//                             flush_output(w);
                                outcnt=(w),
                                flush_window();
                                w = 0;
diff --git a/tar.c b/tar.c
index ef611531a144d0264c7e8b1035076c2ec9ce2ff8..9be63ced86802ed1498b2de35c8dffca21356107 100644 (file)
--- a/tar.c
+++ b/tar.c
@@ -284,11 +284,9 @@ extern int tar_main(int argc, char **argv)
                /* unzip tarFd in a seperate process */
                if (unzipFlag == TRUE) {
                        comp_file = fdopen(tarFd, "r");
-                       printf("1\n");
                        if ((tarFd = gz_open(comp_file, &pid)) == EXIT_FAILURE) {
                                error_msg_and_die("Couldnt unzip file");
                        }
-                       printf("2\n");
                }
 #endif                 
                status = readTarFile(tarFd, extractFlag, listFlag, tostdoutFlag,