From e8a8febfbc200ba9150ff3f68cd0146389314eea Mon Sep 17 00:00:00 2001 From: Richard Russon Date: Wed, 26 Jul 2017 19:49:25 +0100 Subject: [PATCH] tidy: use DT_MASK to get type --- init.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/init.c b/init.c index 2597da680..7a0413a4e 100644 --- a/init.c +++ b/init.c @@ -710,7 +710,7 @@ static void free_opt(struct Option *p) { struct Regex *pp = NULL; - switch (p->type & DT_MASK) + switch (DTYPE(p->type)) { case DT_ADDR: rfc822_free_address((struct Address **) p->data); @@ -2124,7 +2124,7 @@ static int parse_my_hdr(struct Buffer *buf, struct Buffer *s, static void set_default(struct Option *p) { - switch (p->type & DT_MASK) + switch (DTYPE(p->type)) { case DT_STR: if (!p->init && *((char **) p->data)) @@ -2159,7 +2159,7 @@ static void set_default(struct Option *p) static void restore_default(struct Option *p) { - switch (p->type & DT_MASK) + switch (DTYPE(p->type)) { case DT_STR: mutt_str_replace((char **) p->data, (char *) p->init); -- 2.40.0