* src/checkpoint.c (checkpoint_state): Now enum, not int.
(tty_cleanup): Now bool, not int.
**checkpoint_action_tail = &checkpoint_action;
/* State of the checkpoint system */
-enum {
+static enum {
CHKP_INIT, /* Needs initialization */
CHKP_COMPILE, /* Actions are being compiled */
CHKP_RUN /* Actions are being run */
-};
-static int checkpoint_state;
+} checkpoint_state;
/* Blocked signals */
static sigset_t sigs;
return NULL;
}
-static int tty_cleanup;
+static bool tty_cleanup;
static const char *def_format =
"%{%Y-%m-%d %H:%M:%S}t: %ds, %{read,wrote}T%*\r";
if (*ip == '\r')
{
len = 0;
- tty_cleanup = 1;
+ tty_cleanup = true;
}
else
len++;