isync

mailbox synchronization program
git clone https://git.code.sf.net/p/isync/isync
Log | Files | Refs | README | LICENSE

commit 167de3e438efe57c39a9b1c76ea6afb4987b62f8
parent 842aa402c339d2394e9f8f25a06319dfcd31ad4b
Author: Oswald Buddenhagen <ossi@users.sf.net>
Date:   Mon,  1 Apr 2013 12:30:34 +0200

remove some temporaries in maildir_list_part()

Diffstat:
Msrc/drv_maildir.c | 15++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/src/drv_maildir.c b/src/drv_maildir.c @@ -250,18 +250,19 @@ maildir_list_recurse( store_t *gctx, int isBox, int *flags, const char *inbox, static int maildir_list_part( store_t *gctx, int doInbox, int *flags ) { - int pl, nl; - const char *inbox = ((maildir_store_conf_t *)gctx->conf)->inbox; char path[_POSIX_PATH_MAX], name[_POSIX_PATH_MAX]; if (doInbox) { *flags &= ~LIST_INBOX; - pl = nfsnprintf( path, _POSIX_PATH_MAX, "%s", inbox ); - nl = nfsnprintf( name, _POSIX_PATH_MAX, "INBOX" ); - return maildir_list_recurse( gctx, 1, flags, 0, path, pl, name, nl ); + return maildir_list_recurse( + gctx, 1, flags, 0, + path, nfsnprintf( path, _POSIX_PATH_MAX, "%s", ((maildir_store_conf_t *)gctx->conf)->inbox ), + name, nfsnprintf( name, _POSIX_PATH_MAX, "INBOX" ) ); } else { - pl = nfsnprintf( path, _POSIX_PATH_MAX, "%s", gctx->conf->path ); - return maildir_list_recurse( gctx, 0, flags, inbox, path, pl, name, 0 ); + return maildir_list_recurse( + gctx, 0, flags, ((maildir_store_conf_t *)gctx->conf)->inbox, + path, nfsnprintf( path, _POSIX_PATH_MAX, "%s", gctx->conf->path ), + name, 0 ); } }