diff rvinterf/asyncshell/tchcmd.c @ 64:d43d82cbfb85

fc-shell: use the newly adopted exit code convention
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 26 Oct 2016 22:25:18 +0000
parents e7502631a0f9
children 8171c5c0d804
line wrap: on
line diff
--- a/rvinterf/asyncshell/tchcmd.c	Wed Oct 26 22:00:39 2016 +0000
+++ b/rvinterf/asyncshell/tchcmd.c	Wed Oct 26 22:25:18 2016 +0000
@@ -11,6 +11,7 @@
 #include "pktmux.h"
 #include "limits.h"
 #include "tch_feature.h"
+#include "exitcodes.h"
 
 extern u_char rvi_msg[];
 extern int rvi_msg_len;
@@ -42,7 +43,7 @@
 		config = 0;
 	else {
 		printf("error: boolean argument required\n");
-		return(1);
+		return(ERROR_USAGE);
 	}
 	return send_tch_config_req(config);
 }