From: Ralph Corderoy Date: Wed, 19 Oct 2016 22:27:13 +0000 (+0100) Subject: Replace `(char *)0' et al with `NULL'. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/5484df03060b28526b777bb51974c5157840e90e?hp=f09abae01503136d974a3a969cc2b8a6a6f83abe Replace `(char *)0' et al with `NULL'. None of them are vararg parameters. --- diff --git a/uip/sortm.c b/uip/sortm.c index f0d3248a..fbedaf26 100644 --- a/uip/sortm.c +++ b/uip/sortm.c @@ -122,7 +122,7 @@ main (int argc, char **argv) subjsort = "subject"; continue; case NSUBJSW: - subjsort = (char *)0; + subjsort = NULL; continue; case LIMSW: @@ -521,7 +521,7 @@ rename_chain (struct msgs *mp, struct smsg **mlist, int msg, int endmsg) for (;;) { nxt = mlist[msg] - smsgs; /* mlist[msg] is a ptr into smsgs */ - mlist[msg] = (struct smsg *)0; + mlist[msg] = NULL; old = smsgs[nxt].s_msg; new = smsgs[msg].s_msg; strncpy (oldname, m_name (old), sizeof(oldname));