]> diplodocus.org Git - nmh/blobdiff - uip/sortm.c
Replace sizeof string constant - 1 with LEN().
[nmh] / uip / sortm.c
index f0d3248a8e8210d8d37db40cc4cd2c49d1a496fa..fbedaf26718c424df1881f2f9235c241a22c814f 100644 (file)
@@ -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));