Renamed all standard sequences (e.g. cur->c) and made them globally changeable
[mmh] / sbr / folder_pack.c
index 5280e30..c2b5911 100644 (file)
@@ -57,8 +57,10 @@ folder_pack(struct msgs **mpp, int verbose)
                                ** old message file is around for the hook.
                                */
 
-                               (void)snprintf(oldmsg, sizeof (oldmsg), "%s/%d", mp->foldpath, msgnum);
-                               (void)snprintf(newmsg, sizeof (newmsg), "%s/%d", mp->foldpath, hole);
+                               snprintf(oldmsg, sizeof (oldmsg), "%s/%d",
+                                               mp->foldpath, msgnum);
+                               snprintf(newmsg, sizeof (newmsg), "%s/%d",
+                                               mp->foldpath, hole);
                                ext_hook("ref-hook", oldmsg, newmsg);
 
                                /* move the message file */
@@ -93,8 +95,7 @@ folder_pack(struct msgs **mpp, int verbose)
        mp->lowmsg = 1;
        mp->hghmsg = hole - 1;
 
-       /* update the "cur" sequence */
-       if (newcurrent != 0)
+       if (newcurrent)
                seq_setcur(mp, newcurrent);
 
        return 0;