FreeCalypso > hg > freecalypso-tools
diff rvinterf/asyncshell/sendsp.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 |
line wrap: on
line diff
--- a/rvinterf/asyncshell/sendsp.c Wed Oct 26 22:00:39 2016 +0000 +++ b/rvinterf/asyncshell/sendsp.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_gpf_sysprim(stackdest, primstr) char *stackdest, *primstr; @@ -21,13 +22,13 @@ if (strlen(stackdest) > 4) { printf( "error: stack destination arg may not exceed 4 characters\n"); - return(1); + return(ERROR_USAGE); } intlen = 12 + strlen(primstr); pktlen = intlen + 4; if (pktlen > 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_L23_HEADER;