projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mhsign: Ignore expired, revoked, invalid, and similar public keys.
[mmh]
/
sbr
/
folder_addmsg.c
diff --git
a/sbr/folder_addmsg.c
b/sbr/folder_addmsg.c
index
423384a
..
69083cc
100644
(file)
--- a/
sbr/folder_addmsg.c
+++ b/
sbr/folder_addmsg.c
@@
-132,20
+132,16
@@
folder_addmsg(struct msgs **mpp, char *msgfile, int selected,
if (link(msgfile, newmsg) != -1) {
if (deleting) {
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
} else
- (void)ext_hook("add-hook", newmsg, (char *)0);
+ ext_hook("add-hook", newmsg, NULL);
return msgnum;
} else {
linkerr = errno;
return msgnum;
} else {
linkerr = errno;
-#ifdef EISREMOTE
- if (linkerr == EISREMOTE)
- linkerr = EXDEV;
-#endif /* EISREMOTE */
-
/*
** Check if the file in our desired location is
** the same as the source file. If so, then just
/*
** Check if the file in our desired location is
** the same as the source file. If so, then just
@@
-188,10
+184,13
@@
folder_addmsg(struct msgs **mpp, char *msgfile, int selected,
close(outfd);
if (deleting) {
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
} else
- (void)ext_hook("add-hook", newmsg, (char *)0);
+ ext_hook("add-hook", newmsg, NULL);
return msgnum;
}
return msgnum;
}