]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: Fix whitespace in var-expand.c
authorAki Tuomi <aki.tuomi@dovecot.fi>
Tue, 22 Nov 2016 08:54:43 +0000 (10:54 +0200)
committerGitLab <gitlab@git.dovecot.net>
Thu, 23 Mar 2017 11:18:26 +0000 (13:18 +0200)
src/lib/var-expand.c

index 614ee93acfe79f050f6b3d186640b9addb7eb465..9ee098dff479188c8fb880295437fa94e9ea7377 100644 (file)
@@ -92,7 +92,7 @@ static const char *m_str_hash(const char *str, struct var_expand_context *ctx)
        str_printfa(hash, "%x", value);
        while ((int)str_len(hash) < ctx->offset)
                str_insert(hash, 0, "0");
-        ctx->offset = 0;
+       ctx->offset = 0;
 
        return str_c(hash);
 }
@@ -119,7 +119,7 @@ m_str_newhash(const char *str, struct var_expand_context *ctx)
        str_printfa(hash, "%x", (unsigned int)value);
        while ((int)str_len(hash) < ctx->offset)
                str_insert(hash, 0, "0");
-        ctx->offset = 0;
+       ctx->offset = 0;
 
        return str_c(hash);
 }
@@ -180,7 +180,7 @@ static int
 var_expand_short(const struct var_expand_table *table, char key,
                 const char **var_r, const char **error_r)
 {
-        const struct var_expand_table *t;
+       const struct var_expand_table *t;
 
        if (table != NULL) {
                for (t = table; !TABLE_LAST(t); t++) {
@@ -389,7 +389,7 @@ var_expand_long(const struct var_expand_table *table,
                const void *key_start, size_t key_len, void *context,
                const char **var_r, const char **error_r)
 {
-        const struct var_expand_table *t;
+       const struct var_expand_table *t;
        const char *key, *value = NULL;
        int ret = 1;
 
@@ -447,9 +447,9 @@ int var_expand_with_funcs(string_t *dest, const char *str,
                          const struct var_expand_func_table *func_table,
                          void *context, const char **error_r)
 {
-        const struct var_expand_modifier *m;
+       const struct var_expand_modifier *m;
        const char *var;
-        struct var_expand_context ctx;
+       struct var_expand_context ctx;
        const char *(*modifier[MAX_MODIFIER_COUNT])
                (const char *, struct var_expand_context *);
        const char *end;
@@ -509,7 +509,7 @@ int var_expand_with_funcs(string_t *dest, const char *str,
                                ctx.width = sign * ctx.width;
                        }
 
-                        modifier_count = 0;
+                       modifier_count = 0;
                        while (modifier_count < MAX_MODIFIER_COUNT) {
                                modifier[modifier_count] = NULL;
                                for (m = modifiers; m->key != '\0'; m++) {