]> git.mdlowis.com Git - projs/opts.git/commitdiff
Added the ability for the user to provide their own error handler
authorMike D. Lowis <mike@mdlowis.com>
Thu, 19 Mar 2015 15:19:49 +0000 (11:19 -0400)
committerMike D. Lowis <mike@mdlowis.com>
Thu, 19 Mar 2015 15:19:49 +0000 (11:19 -0400)
tests/test_opts.c

index e8cb4618c6d718a5d32e5b0a2948c13043c3f532..97adcbe172eb5bd6f7908b2951da5c9653336089 100755 (executable)
@@ -43,7 +43,7 @@ void exit(int code)
 static void User_Error_Cb(const char* msg, char* opt_name) {
     (void)msg;
     (void)opt_name;
-    exit(1);
+    exit(2);
 }
 
 void test_setup(void) {}