]> diplodocus.org Git - nmh/commitdiff
uip: Change global int userrs to bool.
authorRalph Corderoy <ralph@inputplus.co.uk>
Mon, 30 Oct 2017 23:32:58 +0000 (23:32 +0000)
committerRalph Corderoy <ralph@inputplus.co.uk>
Mon, 30 Oct 2017 23:32:58 +0000 (23:32 +0000)
uip/mhlist.c
uip/mhmisc.c
uip/mhmisc.h
uip/mhn.c
uip/mhshow.c
uip/mhstore.c

index e6fc1dd..1a1ccf9 100644 (file)
@@ -294,7 +294,7 @@ do_cache:
     if (!*cts)
        done (1);
 
     if (!*cts)
        done (1);
 
-    userrs = 1;
+    userrs = true;
     SIGNAL (SIGQUIT, quitser);
     SIGNAL (SIGPIPE, pipeser);
 
     SIGNAL (SIGQUIT, quitser);
     SIGNAL (SIGPIPE, pipeser);
 
index acaae82..559c3cd 100644 (file)
@@ -22,7 +22,7 @@ int ntype = 0;
 char *parts[NPARTS + 1];
 char *types[NTYPES + 1];
 
 char *parts[NPARTS + 1];
 char *types[NTYPES + 1];
 
-int userrs = 0;
+bool userrs;
 
 static char *errs = NULL;
 
 
 static char *errs = NULL;
 
index 84ffeab..7b0ea86 100644 (file)
@@ -21,4 +21,4 @@ extern int ntype;
 extern char *parts[NPARTS + 1];
 extern char *types[NTYPES + 1];
 
 extern char *parts[NPARTS + 1];
 extern char *types[NTYPES + 1];
 
-extern int userrs;
+extern bool userrs;
index ab9c8f5..0d1d48e 100644 (file)
--- a/uip/mhn.c
+++ b/uip/mhn.c
@@ -470,7 +470,7 @@ do_cache:
     if (!listsw && !showsw && !storesw && !cachesw)
        showsw = true;
 
     if (!listsw && !showsw && !storesw && !cachesw)
        showsw = true;
 
-    userrs = 1;
+    userrs = true;
     SIGNAL (SIGQUIT, quitser);
     SIGNAL (SIGPIPE, pipeser);
 
     SIGNAL (SIGQUIT, quitser);
     SIGNAL (SIGPIPE, pipeser);
 
index f868065..e44dd11 100644 (file)
@@ -385,7 +385,7 @@ do_cache:
     if (!*cts)
        done (1);
 
     if (!*cts)
        done (1);
 
-    userrs = 1;
+    userrs = true;
     SIGNAL (SIGQUIT, quitser);
     SIGNAL (SIGPIPE, pipeser);
 
     SIGNAL (SIGQUIT, quitser);
     SIGNAL (SIGPIPE, pipeser);
 
index 3c7866c..6f2fdd3 100644 (file)
@@ -314,7 +314,7 @@ do_cache:
     if (!*cts)
        done (1);
 
     if (!*cts)
        done (1);
 
-    userrs = 1;
+    userrs = true;
     SIGNAL (SIGQUIT, quitser);
     SIGNAL (SIGPIPE, pipeser);
 
     SIGNAL (SIGQUIT, quitser);
     SIGNAL (SIGPIPE, pipeser);