Remove cruft

This commit is contained in:
Glenn L McGrath
2001-03-28 07:37:48 +00:00
parent 9233959940
commit 02cebebc3b
4 changed files with 4 additions and 8 deletions

View File

@ -125,13 +125,14 @@ unsigned short mask_bits[] = {
//static int error_number = 0; //static int error_number = 0;
/* ======================================================================== /* ========================================================================
* Signal and error handler. * Signal and error handler.
*/
static void abort_gzip() static void abort_gzip()
{ {
error_msg("gzip aborted\n"); error_msg("gzip aborted\n");
// exit(ERROR); // exit(ERROR);
return; return;
} }
*/
static void make_crc_table() 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 */ if (e == 16) { /* then it's a literal */
window[w++] = (unsigned char) t->v.n; window[w++] = (unsigned char) t->v.n;
if (w == WSIZE) { if (w == WSIZE) {
// flush_output(w);
outcnt=(w), outcnt=(w),
flush_window(); flush_window();
w = 0; w = 0;

View File

@ -284,11 +284,9 @@ extern int tar_main(int argc, char **argv)
/* unzip tarFd in a seperate process */ /* unzip tarFd in a seperate process */
if (unzipFlag == TRUE) { if (unzipFlag == TRUE) {
comp_file = fdopen(tarFd, "r"); comp_file = fdopen(tarFd, "r");
printf("1\n");
if ((tarFd = gz_open(comp_file, &pid)) == EXIT_FAILURE) { if ((tarFd = gz_open(comp_file, &pid)) == EXIT_FAILURE) {
error_msg_and_die("Couldnt unzip file"); error_msg_and_die("Couldnt unzip file");
} }
printf("2\n");
} }
#endif #endif
status = readTarFile(tarFd, extractFlag, listFlag, tostdoutFlag, status = readTarFile(tarFd, extractFlag, listFlag, tostdoutFlag,

View File

@ -125,13 +125,14 @@ unsigned short mask_bits[] = {
//static int error_number = 0; //static int error_number = 0;
/* ======================================================================== /* ========================================================================
* Signal and error handler. * Signal and error handler.
*/
static void abort_gzip() static void abort_gzip()
{ {
error_msg("gzip aborted\n"); error_msg("gzip aborted\n");
// exit(ERROR); // exit(ERROR);
return; return;
} }
*/
static void make_crc_table() 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 */ if (e == 16) { /* then it's a literal */
window[w++] = (unsigned char) t->v.n; window[w++] = (unsigned char) t->v.n;
if (w == WSIZE) { if (w == WSIZE) {
// flush_output(w);
outcnt=(w), outcnt=(w),
flush_window(); flush_window();
w = 0; w = 0;

2
tar.c
View File

@ -284,11 +284,9 @@ extern int tar_main(int argc, char **argv)
/* unzip tarFd in a seperate process */ /* unzip tarFd in a seperate process */
if (unzipFlag == TRUE) { if (unzipFlag == TRUE) {
comp_file = fdopen(tarFd, "r"); comp_file = fdopen(tarFd, "r");
printf("1\n");
if ((tarFd = gz_open(comp_file, &pid)) == EXIT_FAILURE) { if ((tarFd = gz_open(comp_file, &pid)) == EXIT_FAILURE) {
error_msg_and_die("Couldnt unzip file"); error_msg_and_die("Couldnt unzip file");
} }
printf("2\n");
} }
#endif #endif
status = readTarFile(tarFd, extractFlag, listFlag, tostdoutFlag, status = readTarFile(tarFd, extractFlag, listFlag, tostdoutFlag,