From 2c2bcffb5d26ebf0c7cc0c6586feda4ce7967e98 Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Tue, 22 Nov 2016 10:54:43 +0200 Subject: [PATCH] lib: Fix whitespace in var-expand.c --- src/lib/var-expand.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/lib/var-expand.c b/src/lib/var-expand.c index 614ee93acf..9ee098dff4 100644 --- a/src/lib/var-expand.c +++ b/src/lib/var-expand.c @@ -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++) { -- 2.47.3