]> diplodocus.org Git - nmh/blobdiff - sbr/folder_addmsg.c
Put, rather than print, single characters.
[nmh] / sbr / folder_addmsg.c
old mode 100755 (executable)
new mode 100644 (file)
index 1a1c8b1..f6a9af3
@@ -9,7 +9,6 @@
 
 #include <h/mh.h>
 #include <fcntl.h>
 
 #include <h/mh.h>
 #include <fcntl.h>
-#include <errno.h>
 
 /*
  * Link message into a folder.  Return the new number
 
 /*
  * Link message into a folder.  Return the new number
@@ -135,7 +134,7 @@ folder_addmsg (struct msgs **mpp, char *msgfile, int selected,
                (void)ext_hook("ref-hook", oldmsg, newmsg);
            }
            else
                (void)ext_hook("ref-hook", oldmsg, newmsg);
            }
            else
-               (void)ext_hook("add-hook", newmsg, (char *)0);
+               (void)ext_hook("add-hook", newmsg, NULL);
 
            return msgnum;
        } else {
 
            return msgnum;
        } else {
@@ -192,7 +191,7 @@ folder_addmsg (struct msgs **mpp, char *msgfile, int selected,
                        (void)ext_hook("ref-hook", oldmsg, newmsg);
                    }
                    else
                        (void)ext_hook("ref-hook", oldmsg, newmsg);
                    }
                    else
-                       (void)ext_hook("add-hook", newmsg, (char *)0);
+                       (void)ext_hook("add-hook", newmsg, NULL);
 
                    return msgnum;
                }
 
                    return msgnum;
                }