FreeCalypso > hg > freecalypso-tools
diff rvinterf/tmsh/pktsort.c @ 65:21a79f465d6a
fc-tmsh: use the newly adopted exit code convention
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Wed, 26 Oct 2016 22:46:23 +0000 |
parents | e7502631a0f9 |
children | 27c41e4b21ae |
line wrap: on
line diff
--- a/rvinterf/tmsh/pktsort.c Wed Oct 26 22:25:18 2016 +0000 +++ b/rvinterf/tmsh/pktsort.c Wed Oct 26 22:46:23 2016 +0000 @@ -12,6 +12,7 @@ #include "localsock.h" #include "localtypes.h" #include "etm.h" +#include "exitcodes.h" extern u_char rvi_msg[]; extern int rvi_msg_len; @@ -34,7 +35,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]; @@ -49,7 +50,7 @@ tty_cleanup(); fprintf(stderr, "unexpected fwd of USEID %08X from rvinterf\n", useid); - exit(1); + exit(ERROR_RVINTERF); } } @@ -67,6 +68,6 @@ tty_cleanup(); fprintf(stderr, "unexpected fwd of MUX %02X from rvinterf\n", rvi_msg[1]); - exit(1); + exit(ERROR_RVINTERF); } }