if (link(msgfile, newmsg) != -1) {
if (deleting) {
- (void)snprintf(oldmsg, sizeof (oldmsg), "%s/%s", from_dir, msgfile);
- (void)ext_hook("ref-hook", oldmsg, newmsg);
+ snprintf(oldmsg, sizeof (oldmsg), "%s/%s",
+ from_dir, msgfile);
+ ext_hook("ref-hook", oldmsg, newmsg);
} else
- (void)ext_hook("add-hook", newmsg, (char *)0);
+ ext_hook("add-hook", newmsg, NULL);
return msgnum;
} else {
close(outfd);
if (deleting) {
- (void)snprintf(oldmsg, sizeof (oldmsg), "%s/%s", from_dir, msgfile);
- (void)ext_hook("ref-hook", oldmsg, newmsg);
+ snprintf(oldmsg, sizeof oldmsg,
+ "%s/%s",
+ from_dir,
+ msgfile);
+ ext_hook("ref-hook", oldmsg, newmsg);
} else
- (void)ext_hook("add-hook", newmsg, (char *)0);
+ ext_hook("add-hook", newmsg, NULL);
return msgnum;
}