]> granicus.if.org Git - neomutt/commitdiff
Be consistent on variable names
authorPietro Cerutti <gahr@gahr.ch>
Tue, 25 Jul 2017 13:36:52 +0000 (13:36 +0000)
committerRichard Russon <rich@flatcap.org>
Sat, 5 Aug 2017 17:53:06 +0000 (18:53 +0100)
Issue #374

init.c

diff --git a/init.c b/init.c
index 900de882ebdc21effb61a896bd09d6f9cd14dea2..e76ea829a59653df7c24f35ab00a0589937f3d36 100644 (file)
--- a/init.c
+++ b/init.c
@@ -1770,7 +1770,7 @@ static int parse_attachments(struct Buffer *buf, struct Buffer *s,
                              unsigned long data, struct Buffer *err)
 {
   char op, *category = NULL;
-  struct STailQHead *headp = NULL;
+  struct STailQHead *head = NULL;
 
   mutt_extract_token(buf, s, 0);
   if (!buf->data || *buf->data == '\0')
@@ -1803,16 +1803,16 @@ static int parse_attachments(struct Buffer *buf, struct Buffer *s,
   if (mutt_strncasecmp(category, "attachment", strlen(category)) == 0)
   {
     if (op == '+')
-      headp = &AttachAllow;
+      head = &AttachAllow;
     else
-      headp = &AttachExclude;
+      head = &AttachExclude;
   }
   else if (mutt_strncasecmp(category, "inline", strlen(category)) == 0)
   {
     if (op == '+')
-      headp = &InlineAllow;
+      head = &InlineAllow;
     else
-      headp = &InlineExclude;
+      head = &InlineExclude;
   }
   else
   {
@@ -1820,7 +1820,7 @@ static int parse_attachments(struct Buffer *buf, struct Buffer *s,
     return -1;
   }
 
-  return parse_attach_list(buf, s, headp, err);
+  return parse_attach_list(buf, s, head, err);
 }
 
 static int parse_unattachments(struct Buffer *buf, struct Buffer *s,