X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Ftar.c;h=68c8801b1dd07be662e6e16d5ab26058f832a406;hb=c930802f313aa29b479edc6f9782897db608ce64;hp=bd48d7be1f22cc8334d0764de5bb157b697cc741;hpb=ca14885884b5ca211624809e1e8539ec5a028b10;p=chaz%2Ftar diff --git a/src/tar.c b/src/tar.c index bd48d7b..68c8801 100644 --- a/src/tar.c +++ b/src/tar.c @@ -41,10 +41,11 @@ #include #include +#include #include #include -#include #include +#include #include #include #include @@ -980,7 +981,7 @@ read_name_from_file (FILE *fp, struct obstack *stk) if (counter == 0 && c != EOF) return file_list_skip; - + obstack_1grow (stk, 0); return (counter == 0 && c == EOF) ? file_list_end : file_list_success; @@ -1068,7 +1069,7 @@ update_argv (const char *filename, struct argp_state *state) case file_list_success: count++; break; - + case file_list_end: /* won't happen, just to pacify gcc */ break; @@ -1093,7 +1094,7 @@ update_argv (const char *filename, struct argp_state *state) filename_terminator = 0; break; } - + case file_list_skip: break; } @@ -2346,7 +2347,7 @@ main (int argc, char **argv) if (stdlis == stdout) close_stdout (); - else if (ferror (stderr) || fclose (stderr) != 0) + else if (ferror (stderr) || fclose (stderr) != 0) exit_status = TAREXIT_FAILURE; return exit_status;