Changed some string terminations from NULL to \0.
[mmh] / uip / whatnowsbr.c
index b12307d..0e2a998 100644 (file)
@@ -26,7 +26,7 @@ static struct swit whatnowswitches[] = {
 #define VERSIONSW               6
     { "version", 0 },
 #define        HELPSW                  7
-    { "help", 4 },
+    { "help", 0 },
     { NULL, 0 }
 };
 
@@ -363,13 +363,14 @@ editfile (char **ed, char **arg, char *file, int use, struct msgs *mp,
                else {
 #endif
                if (((status & 0xff00) != 0xff00)
-                       && (!reedit || (status & 0x00ff)))
+                   && (!reedit || (status & 0x00ff))) {
                    if (!use && (status & 0xff00) &&
                            (rename (file, cp = m_backup (file)) != NOTOK)) {
                        advise (NULL, "problems with edit--draft left in %s", cp);
                    } else {
                        advise (NULL, "problems with edit--%s preserved", file);
                    }
+               }
                status = -2;    /* maybe "reedit ? -2 : -1"? */
                break;
 #ifdef ATTVIBUG
@@ -654,7 +655,7 @@ static struct swit  sendswitches[] = {
 #define SVERSIONSW       22
     { "version", 0 },
 #define        SHELPSW          23
-    { "help", 4 },
+    { "help", 0 },
 #define BITSTUFFSW       24
     { "dashstuffing", -12 },
 #define NBITSTUFFSW      25