From: Ralph Corderoy Date: Mon, 30 Oct 2017 23:32:58 +0000 (+0000) Subject: uip: Change global int userrs to bool. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/6b6e5f94f81e56e9e9e1cf26ea596c01ed403555?ds=inline uip: Change global int userrs to bool. --- diff --git a/uip/mhlist.c b/uip/mhlist.c index e6fc1dd7..1a1ccf99 100644 --- a/uip/mhlist.c +++ b/uip/mhlist.c @@ -294,7 +294,7 @@ do_cache: if (!*cts) done (1); - userrs = 1; + userrs = true; SIGNAL (SIGQUIT, quitser); SIGNAL (SIGPIPE, pipeser); diff --git a/uip/mhmisc.c b/uip/mhmisc.c index acaae82a..559c3cda 100644 --- a/uip/mhmisc.c +++ b/uip/mhmisc.c @@ -22,7 +22,7 @@ int ntype = 0; char *parts[NPARTS + 1]; char *types[NTYPES + 1]; -int userrs = 0; +bool userrs; static char *errs = NULL; diff --git a/uip/mhmisc.h b/uip/mhmisc.h index 84ffeabe..7b0ea86e 100644 --- a/uip/mhmisc.h +++ b/uip/mhmisc.h @@ -21,4 +21,4 @@ extern int ntype; extern char *parts[NPARTS + 1]; extern char *types[NTYPES + 1]; -extern int userrs; +extern bool userrs; diff --git a/uip/mhn.c b/uip/mhn.c index ab9c8f52..0d1d48e6 100644 --- a/uip/mhn.c +++ b/uip/mhn.c @@ -470,7 +470,7 @@ do_cache: if (!listsw && !showsw && !storesw && !cachesw) showsw = true; - userrs = 1; + userrs = true; SIGNAL (SIGQUIT, quitser); SIGNAL (SIGPIPE, pipeser); diff --git a/uip/mhshow.c b/uip/mhshow.c index f868065c..e44dd115 100644 --- a/uip/mhshow.c +++ b/uip/mhshow.c @@ -385,7 +385,7 @@ do_cache: if (!*cts) done (1); - userrs = 1; + userrs = true; SIGNAL (SIGQUIT, quitser); SIGNAL (SIGPIPE, pipeser); diff --git a/uip/mhstore.c b/uip/mhstore.c index 3c7866c5..6f2fdd39 100644 --- a/uip/mhstore.c +++ b/uip/mhstore.c @@ -314,7 +314,7 @@ do_cache: if (!*cts) done (1); - userrs = 1; + userrs = true; SIGNAL (SIGQUIT, quitser); SIGNAL (SIGPIPE, pipeser);