Fix improperly placed variable declarations.
* imap4d/id.c * libproto/imap/folder.c * libproto/pop/mbox.c * sieve/sieve.c
Showing
4 changed files
with
11 additions
and
5 deletions
... | @@ -173,10 +173,10 @@ imap4d_id (struct imap4d_command *command, imap4d_tokbuf_t tok) | ... | @@ -173,10 +173,10 @@ imap4d_id (struct imap4d_command *command, imap4d_tokbuf_t tok) |
173 | if (imap4d_id_list) | 173 | if (imap4d_id_list) |
174 | { | 174 | { |
175 | mu_iterator_t itr; | 175 | mu_iterator_t itr; |
176 | mu_list_get_iterator (imap4d_id_list, &itr); | ||
177 | int i; | 176 | int i; |
178 | int outcnt = 0; | 177 | int outcnt = 0; |
179 | 178 | ||
179 | mu_list_get_iterator (imap4d_id_list, &itr); | ||
180 | for (i = 0, mu_iterator_first (itr); | 180 | for (i = 0, mu_iterator_first (itr); |
181 | i < 30 && !mu_iterator_is_done (itr); | 181 | i < 30 && !mu_iterator_is_done (itr); |
182 | i++, mu_iterator_next (itr)) | 182 | i++, mu_iterator_next (itr)) | ... | ... |
... | @@ -574,10 +574,12 @@ static int | ... | @@ -574,10 +574,12 @@ static int |
574 | imap_writer (void *iodata, char *buf) | 574 | imap_writer (void *iodata, char *buf) |
575 | { | 575 | { |
576 | f_imap_t iop = iodata; | 576 | f_imap_t iop = iodata; |
577 | int status; | ||
578 | |||
577 | MU_DEBUG2 (iop->folder->debug, MU_DEBUG_PROT, "g%lu %s\n", | 579 | MU_DEBUG2 (iop->folder->debug, MU_DEBUG_PROT, "g%lu %s\n", |
578 | (unsigned long)iop->seq, buf); | 580 | (unsigned long)iop->seq, buf); |
579 | int status = imap_writeline (iop, "g%lu %s\r\n", | 581 | status = imap_writeline (iop, "g%lu %s\r\n", |
580 | (unsigned long)iop->seq++, buf); | 582 | (unsigned long)iop->seq++, buf); |
581 | CHECK_ERROR (iop, status); | 583 | CHECK_ERROR (iop, status); |
582 | status = imap_send (iop); | 584 | status = imap_send (iop); |
583 | CHECK_ERROR (iop, status); | 585 | CHECK_ERROR (iop, status); | ... | ... |
... | @@ -729,8 +729,10 @@ static int | ... | @@ -729,8 +729,10 @@ static int |
729 | pop_writer (void *iodata, char *buf) | 729 | pop_writer (void *iodata, char *buf) |
730 | { | 730 | { |
731 | pop_data_t iop = iodata; | 731 | pop_data_t iop = iodata; |
732 | int status; | ||
733 | |||
732 | MU_DEBUG1 (iop->mbox->debug, MU_DEBUG_PROT, "%s\n", buf); | 734 | MU_DEBUG1 (iop->mbox->debug, MU_DEBUG_PROT, "%s\n", buf); |
733 | int status = pop_writeline (iop, "%s\r\n", buf); | 735 | status = pop_writeline (iop, "%s\r\n", buf); |
734 | CHECK_ERROR (iop, status); | 736 | CHECK_ERROR (iop, status); |
735 | status = pop_write (iop); | 737 | status = pop_write (iop); |
736 | CHECK_ERROR (iop, status); | 738 | CHECK_ERROR (iop, status); | ... | ... |
... | @@ -271,9 +271,11 @@ cb_debug (mu_debug_t debug, void *data, mu_config_value_t *val) | ... | @@ -271,9 +271,11 @@ cb_debug (mu_debug_t debug, void *data, mu_config_value_t *val) |
271 | static int | 271 | static int |
272 | cb_email (mu_debug_t debug, void *data, mu_config_value_t *val) | 272 | cb_email (mu_debug_t debug, void *data, mu_config_value_t *val) |
273 | { | 273 | { |
274 | int rc; | ||
275 | |||
274 | if (mu_cfg_assert_value_type (val, MU_CFG_STRING, debug)) | 276 | if (mu_cfg_assert_value_type (val, MU_CFG_STRING, debug)) |
275 | return 1; | 277 | return 1; |
276 | int rc = mu_set_user_email (val->v.string); | 278 | rc = mu_set_user_email (val->v.string); |
277 | if (rc) | 279 | if (rc) |
278 | mu_cfg_format_error (debug, MU_DEBUG_ERROR, _("invalid email: %s"), | 280 | mu_cfg_format_error (debug, MU_DEBUG_ERROR, _("invalid email: %s"), |
279 | mu_strerror (rc)); | 281 | mu_strerror (rc)); | ... | ... |
-
Please register or sign in to post a comment