Index: branches/ariel/xmldumps-backup/mwbzutils/checkforbz2footer.c |
— | — | @@ -19,7 +19,7 @@ |
20 | 20 | a bzipped file. |
21 | 21 | Outputs: none. |
22 | 22 | Exits with 0 if the file contains the footer at the end, |
23 | | - 1 if the file does not contain the footer, and -1 on error. |
| 23 | + -1 if the file does not contain the footer or there is an error. |
24 | 24 | */ |
25 | 25 | |
26 | 26 | |
— | — | @@ -42,6 +42,11 @@ |
43 | 43 | bfile.footer = init_footer(); |
44 | 44 | result = check_file_for_footer(fin, &bfile); |
45 | 45 | close(fin); |
46 | | - exit(result); |
| 46 | + if (result == -1) { |
| 47 | + return(result); |
| 48 | + } |
| 49 | + else { |
| 50 | + return(0); |
| 51 | + } |
47 | 52 | } |
48 | 53 | |