X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/dbdbd49d59ae5c14e66b1c148a63b8abc9d076ab..b47b562525f149f175c3d216feea20a6db2e9ff5:/uip/rcvtty.c diff --git a/uip/rcvtty.c b/uip/rcvtty.c index 693cd814..5f3dd430 100644 --- a/uip/rcvtty.c +++ b/uip/rcvtty.c @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #include "h/done.h" @@ -52,9 +53,9 @@ DEFINE_SWITCH_ARRAY(RCVTTY, switches); #undef X static jmp_buf myctx; -static int bell = 1; -static int newline = 1; -static int biff = 0; +static bool bell = true; +static bool newline = true; +static bool biff; static int width = -1; static char *form = NULL; static char *format = NULL; @@ -103,7 +104,7 @@ main (int argc, char **argv) done (0); case BIFFSW: - biff = 1; + biff = true; continue; case FORMSW: @@ -123,16 +124,16 @@ main (int argc, char **argv) width = atoi(cp); continue; case NLSW: - newline = 1; + newline = true; continue; case NNLSW: - newline = 0; + newline = false; continue; case BELSW: - bell = 1; + bell = true; continue; case NBELSW: - bell = 0; + bell = false; continue; }