comparison 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
comparison
equal deleted inserted replaced
63:09b4fd9b3827 64:d43d82cbfb85
9 #include <strings.h> 9 #include <strings.h>
10 #include <stdlib.h> 10 #include <stdlib.h>
11 #include "pktmux.h" 11 #include "pktmux.h"
12 #include "limits.h" 12 #include "limits.h"
13 #include "tch_feature.h" 13 #include "tch_feature.h"
14 #include "exitcodes.h"
14 15
15 extern u_char rvi_msg[]; 16 extern u_char rvi_msg[];
16 extern int rvi_msg_len; 17 extern int rvi_msg_len;
17 18
18 static int tch_rawdump_mode; 19 static int tch_rawdump_mode;
40 else if (!strcmp(argv[0], "disable") || !strcmp(argv[0], "off") || 41 else if (!strcmp(argv[0], "disable") || !strcmp(argv[0], "off") ||
41 !strcmp(argv[0], "0")) 42 !strcmp(argv[0], "0"))
42 config = 0; 43 config = 0;
43 else { 44 else {
44 printf("error: boolean argument required\n"); 45 printf("error: boolean argument required\n");
45 return(1); 46 return(ERROR_USAGE);
46 } 47 }
47 return send_tch_config_req(config); 48 return send_tch_config_req(config);
48 } 49 }
49 50
50 void 51 void