From b6b49a66819bb5fa8246467208d429b670d11a4b Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Thu, 25 May 2017 14:36:59 +0100 Subject: [PATCH] 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. --- h/mh.h | 2 -- uip/comp.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) 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; } -- 2.56.0