From 58db1d05ac47a60bfb698286d859e611f13b07c9 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Thu, 2 Feb 2006 11:12:30 +0000 Subject: [PATCH] cosmetics: move around variable declarations and remove obsolete comment --- src/sync.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/sync.c b/src/sync.c index c358243..db58141 100644 --- a/src/sync.c +++ b/src/sync.c @@ -188,7 +188,7 @@ sync_boxes( store_t *ctx[], const char *names[], channel_conf_t *chan ) int opts[2]; int nom, nos, del[2], ex[2]; int muidval, suidval, smaxxuid, maxuid[2], minwuid, maxwuid; - int t1, t2, t3, t; + int t1, t2, t3, t, uid, nmsgs; int lfd, ret, line, sline, todel, delt, *mexcs, nmexcs, rmexcs; unsigned char nflags; msg_data_t msgdata; @@ -601,8 +601,6 @@ sync_boxes( store_t *ctx[], const char *names[], channel_conf_t *chan ) debug( "synchronizing new entries\n" ); osrecadd = srecadd; for (t = 0; t < 2; t++) { - int nmsgs, uid; - for (nmsgs = 0, tmsg = ctx[1-t]->msgs; tmsg; tmsg = tmsg->next) if (tmsg->srec ? tmsg->srec->uid[t] < 0 && (chan->ops[t] & OP_RENEW) : (chan->ops[t] & OP_NEW)) { debug( "new message %d on %s\n", tmsg->uid, str_ms[1-t] ); @@ -814,9 +812,6 @@ sync_boxes( store_t *ctx[], const char *names[], channel_conf_t *chan ) } } - /* Doing CLOSE here instead of EXPUNGE above saves network traffic. - But it costs more server power for single-file formats. And it - makes disk-full/quota-exceeded more probable. */ for (t = 0; t < 2; t++) { ex[t] = 0; if (chan->ops[t] & OP_EXPUNGE) {