X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Ffolder_delmsgs.c;h=d6e63b6ccc0c43ca98e9ddc3cbfa1d12f6b1beb2;hp=ac93068d4313e6f8f54b790bc68e6cf6b43ec53e;hb=ca1023716d4c2ab890696f3e41fa0d94267a940e;hpb=240013872c392fe644bd4f79382d9f5314b4ea60 diff --git a/sbr/folder_delmsgs.c b/sbr/folder_delmsgs.c index ac93068..d6e63b6 100644 --- a/sbr/folder_delmsgs.c +++ b/sbr/folder_delmsgs.c @@ -56,7 +56,7 @@ folder_delmsgs(struct msgs *mp, int unlink_msgs, int nohook) fflush(stdout); vec[0] = mhbasename(rmmproc); - switch (pid = vfork()) { + switch (pid = fork()) { case -1: advise("fork", "unable to"); return -1; @@ -92,8 +92,9 @@ folder_delmsgs(struct msgs *mp, int unlink_msgs, int nohook) */ if (!nohook) { - (void)snprintf(msgpath, sizeof (msgpath), "%s/%d", mp->foldpath, msgnum); - (void)ext_hook("del-hook", msgpath, (char *)0); + snprintf(msgpath, sizeof (msgpath), "%s/%d", + mp->foldpath, msgnum); + ext_hook("del-hook", msgpath, NULL); } dp = m_name(msgnum);