From: Ralph Corderoy Date: Thu, 25 May 2017 13:36:59 +0000 (+0100) Subject: uip/comp.c: Delete single-use NULLMP macro. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/b6b49a66819bb5fa8246467208d429b670d11a4b?ds=sidebyside uip/comp.c: Delete single-use NULLMP macro. 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. --- diff --git a/h/mh.h b/h/mh.h index af6acf93..f2c7b823 100644 --- 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 */ diff --git a/uip/comp.c b/uip/comp.c index 1e4ffa2a..ae87209f 100644 --- a/uip/comp.c +++ b/uip/comp.c @@ -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; }