]> diplodocus.org Git - nmh/commitdiff
uip/comp.c: Delete single-use NULLMP macro.
authorRalph Corderoy <ralph@inputplus.co.uk>
Thu, 25 May 2017 13:36:59 +0000 (14:36 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Thu, 25 May 2017 15:35:14 +0000 (16:35 +0100)
It just cast 0 to a pointer to struct msgs and was used once, as a
function's parameter.  Replace that with NULL since a prototype for the
function is visible.

h/mh.h
uip/comp.c

diff --git a/h/mh.h b/h/mh.h
index af6acf9..f2c7b82 100644 (file)
--- a/h/mh.h
+++ b/h/mh.h
@@ -353,8 +353,6 @@ struct msgs {
 #define other_files(mp)     ((mp)->msgflags & OTHERS)
 #define set_other_files(mp) ((mp)->msgflags |= OTHERS)
 
-#define        NULLMP  ((struct msgs *) 0)
-
 /*
  * m_getfld() message parsing
  */
index 1e4ffa2..ae87209 100644 (file)
@@ -396,7 +396,7 @@ edit_it:
 
     if (nwhat)
        done (0);
-    what_now (ed, nedit, use, drft, NULL, 0, NULLMP, NULL, 0, cwd, 0);
+    what_now (ed, nedit, use, drft, NULL, 0, NULL, NULL, 0, cwd, 0);
     done (1);
     return 1;
 }