Commit bf6e1b7321dff14e7aaa070f71382d652de2ffd3
Committed by
libras
1 parent
1350a74a
Exists in
master
and in
2 other branches
Change return X to exit(X)
Showing
1 changed file
with
4 additions
and
3 deletions
Show diff stats
main.cpp
| ... | ... | @@ -19,6 +19,7 @@ |
| 19 | 19 | #include "serviceException.h" |
| 20 | 20 | |
| 21 | 21 | #include <sys/time.h> |
| 22 | +#include <stdlib.h> | |
| 22 | 23 | |
| 23 | 24 | using namespace std; |
| 24 | 25 | |
| ... | ... | @@ -114,16 +115,16 @@ int main(int argc, char* argv[]) { |
| 114 | 115 | } |
| 115 | 116 | |
| 116 | 117 | if(isFailed) |
| 117 | - return 1; | |
| 118 | + exit(1); | |
| 118 | 119 | else if(isInvalid) |
| 119 | - return 127; | |
| 120 | + exit(127); | |
| 120 | 121 | |
| 121 | 122 | gettimeofday(&tv2, NULL); |
| 122 | 123 | t2 = (double)(tv2.tv_sec) + (double)(tv2.tv_usec)/ 1000000.00; |
| 123 | 124 | cout << endl; |
| 124 | 125 | DDPRINTF("Time: %lf\n", (t2-t1)); |
| 125 | 126 | DDPRINTF("VLibras concluído!\n\n"); |
| 126 | - return 0; | |
| 127 | + exit(0); | |
| 127 | 128 | |
| 128 | 129 | } |
| 129 | 130 | ... | ... |