From 66d0eff12fdf31e520493e7c2accb95410dcaec2 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Thu, 31 Aug 2017 17:30:17 +0200 Subject: style --- mpick.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'mpick.c') diff --git a/mpick.c b/mpick.c index c6b401a..e99f9d5 100644 --- a/mpick.c +++ b/mpick.c @@ -29,17 +29,17 @@ #include #include #include +#include +#include +#include +#include #include #include -#include #include #include #include #include #include -#include -#include -#include #include "blaze822.h" @@ -163,7 +163,7 @@ static int prune; static void ws() { - while (isspace((unsigned char) *pos)) + while (isspace((unsigned char)*pos)) pos++; } @@ -306,7 +306,7 @@ parse_string(char **s) char t; char *e = ++pos; - while (isalnum((unsigned char) *pos) || *pos == '_') + while (isalnum((unsigned char)*pos) || *pos == '_') pos++; if (e == pos) parse_error("invalid environment variable name"); @@ -407,12 +407,12 @@ static int64_t parse_num(int64_t *r) { char *s = pos; - if (isdigit((unsigned char) *pos)) { + if (isdigit((unsigned char)*pos)) { int64_t n; - for (n = 0; isdigit((unsigned char) *pos) && n <= INT64_MAX / 10 - 10; pos++) + for (n = 0; isdigit((unsigned char)*pos) && n <= INT64_MAX / 10 - 10; pos++) n = 10 * n + (*pos - '0'); - if (isdigit((unsigned char) *pos)) + if (isdigit((unsigned char)*pos)) parse_error("number too big: %s", s); if (token("c")) ; else if (token("b")) n *= 512LL; @@ -499,7 +499,7 @@ parse_cmp() e->a.prop = prop; e->b.num = n; return e; - } else if(token("cur")) { + } else if (token("cur")) { struct expr *e = mkexpr(op); e->a.prop = prop; e->b.var = VAR_CUR; @@ -905,7 +905,7 @@ eval(struct expr *e, struct mailinfo *m) case EXPR_REGEX: case EXPR_REGEXI: { const char *s = ""; - switch(e->a.prop) { + switch (e->a.prop) { case PROP_PATH: s = m->fpath; break; case PROP_FROM: s = msg_addr(m, "from", e->extra); break; case PROP_TO: s = msg_addr(m, "to", e->extra); break; @@ -951,7 +951,7 @@ mailfile(char *file) m->sb = 0; m->msg = 0; - while (*m->fpath == ' ' || *m->fpath== '\t') { + while (*m->fpath == ' ' || *m->fpath == '\t') { m->depth++; m->fpath++; } @@ -1079,7 +1079,7 @@ collect(char *file) } else if (thr->cur->m->depth > m->depth) { /* find parent mail */ struct mlist *pl; - for (pl = thr->cur; pl->m->depth >= m->depth; pl--); + for (pl = thr->cur; pl->m->depth >= m->depth; pl--) ; ml->parent = pl; } -- cgit 1.4.1