FreeCalypso > hg > freecalypso-tools
diff rvinterf/asyncshell/pktsort.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/pktsort.c Wed Oct 26 22:00:39 2016 +0000 +++ b/rvinterf/asyncshell/pktsort.c Wed Oct 26 22:25:18 2016 +0000 @@ -11,6 +11,7 @@ #include "limits.h" #include "localsock.h" #include "localtypes.h" +#include "exitcodes.h" extern u_char rvi_msg[]; extern int rvi_msg_len; @@ -23,7 +24,7 @@ if (rvi_msg_len < 7) { tty_cleanup(); fprintf(stderr, "Error: rvinterf sent us an invalid RVT msg\n"); - exit(1); + exit(ERROR_RVINTERF); } useid = rvi_msg[2] << 24 | rvi_msg[3] << 16 | rvi_msg[4] << 8 | rvi_msg[5]; @@ -35,7 +36,7 @@ tty_cleanup(); fprintf(stderr, "unexpected fwd of USEID %08X from rvinterf\n", useid); - exit(1); + exit(ERROR_RVINTERF); } } @@ -78,6 +79,6 @@ tty_cleanup(); fprintf(stderr, "unexpected fwd of MUX %02X from rvinterf\n", rvi_msg[1]); - exit(1); + exit(ERROR_RVINTERF); } }