X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Ffolder_pack.c;h=c2b59116fcfacc2dc7f4130422b1d69713300a7f;hp=5280e30a393be943a90110bb578a5c7af3362763;hb=dfa0332c4e6144699dedd5c9795219adc0f9c0d2;hpb=714b5c530ece27ea2835a313013f5b770163403c diff --git a/sbr/folder_pack.c b/sbr/folder_pack.c index 5280e30..c2b5911 100644 --- a/sbr/folder_pack.c +++ b/sbr/folder_pack.c @@ -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;