From bf6e1b7321dff14e7aaa070f71382d652de2ffd3 Mon Sep 17 00:00:00 2001 From: Fernando Brito Date: Tue, 27 May 2014 14:04:04 -0300 Subject: [PATCH] Change return X to exit(X) --- main.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/main.cpp b/main.cpp index d56faa4..b75a356 100644 --- a/main.cpp +++ b/main.cpp @@ -19,6 +19,7 @@ #include "serviceException.h" #include +#include using namespace std; @@ -114,16 +115,16 @@ int main(int argc, char* argv[]) { } if(isFailed) - return 1; + exit(1); else if(isInvalid) - return 127; + exit(127); gettimeofday(&tv2, NULL); t2 = (double)(tv2.tv_sec) + (double)(tv2.tv_usec)/ 1000000.00; cout << endl; DDPRINTF("Time: %lf\n", (t2-t1)); DDPRINTF("VLibras concluĂ­do!\n\n"); - return 0; + exit(0); } -- libgit2 0.21.2