Commit bf6e1b7321dff14e7aaa070f71382d652de2ffd3

Authored by Fernando Brito
Committed by libras
1 parent 1350a74a
Exists in master and in 2 other branches api, devel

Change return X to exit(X)

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