diff rvinterf/asyncshell/at.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 bbc41034f14c
line wrap: on
line diff
--- a/rvinterf/asyncshell/at.c	Wed Oct 26 22:00:39 2016 +0000
+++ b/rvinterf/asyncshell/at.c	Wed Oct 26 22:25:18 2016 +0000
@@ -10,6 +10,7 @@
 #include <stdlib.h>
 #include "pktmux.h"
 #include "limits.h"
+#include "exitcodes.h"
 
 send_string_to_ati(str)
 	char *str;
@@ -20,7 +21,7 @@
 	len = strlen(str);
 	if (len + 1 > MAX_PKT_TO_TARGET) {
 		printf("error: max pkt to target limit exceeded\n");
-		return(1);
+		return(ERROR_USAGE);
 	}
 	/* fill out the packet */
 	sendpkt[0] = RVT_AT_HEADER;