tidy attach
authorRichard Russon <rich@flatcap.org>
Sat, 14 Jul 2018 16:04:28 +0000 (17:04 +0100)
committerRichard Russon <rich@flatcap.org>
Mon, 16 Jul 2018 22:47:18 +0000 (23:47 +0100)
email/attach.c

index 7bc6b5d65fe2c6ce42199c99aeac22b2289a5124..769ef4e37bf63f0d30d23a68a1fe9791ff349b9f 100644 (file)
@@ -93,9 +93,7 @@ void mutt_actx_add_body(struct AttachCtx *actx, struct Body *new_body)
  */
 void mutt_actx_free_entries(struct AttachCtx *actx)
 {
-  int i;
-
-  for (i = 0; i < actx->idxlen; i++)
+  for (int i = 0; i < actx->idxlen; i++)
   {
     if (actx->idx[i]->content)
       actx->idx[i]->content->aptr = NULL;
@@ -105,11 +103,11 @@ void mutt_actx_free_entries(struct AttachCtx *actx)
   actx->idxlen = 0;
   actx->vcount = 0;
 
-  for (i = 0; i < actx->fp_len; i++)
+  for (int i = 0; i < actx->fp_len; i++)
     mutt_file_fclose(&actx->fp_idx[i]);
   actx->fp_len = 0;
 
-  for (i = 0; i < actx->body_len; i++)
+  for (int i = 0; i < actx->body_len; i++)
     mutt_body_free(&actx->body_idx[i]);
   actx->body_len = 0;
 }