From 20b85c03e751b4876fa3c92040464e483172b746 Mon Sep 17 00:00:00 2001 From: Jannis Hoffmann Date: Wed, 3 Jul 2024 19:03:11 +0200 Subject: manual format adjustment --- src/constmap.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/constmap.c') diff --git a/src/constmap.c b/src/constmap.c index decc42e..72b8d79 100644 --- a/src/constmap.c +++ b/src/constmap.c @@ -3,6 +3,7 @@ #include "alloc.h" #include "case.h" + static constmap_hash hash(char *s, int len) { unsigned char ch; @@ -104,9 +105,7 @@ int constmap_init_char(struct constmap *cm, char *s, int len, int flagcolon, cha int pos; constmap_hash h; - if (!flagchar || flagchar == 0 || flagchar == '\0') { - flagchar = ':'; - } + if (!flagchar || flagchar == 0 || flagchar == '\0') flagchar = ':'; cm->num = 0; for (j = 0; j < len; ++j) -- cgit v1.2.3