summaryrefslogtreecommitdiff
path: root/src/constmap.c
diff options
context:
space:
mode:
authorJannis Hoffmann <jannis@fehcom.de>2024-07-03 19:03:11 +0200
committerJannis Hoffmann <jannis@fehcom.de>2024-07-03 19:03:11 +0200
commit20b85c03e751b4876fa3c92040464e483172b746 (patch)
tree734fadbfdbc143ec4465093857f4c239448715e0 /src/constmap.c
parenta6a7d6ce079cabdaf2fa502b2e2cf15e5428ac6f (diff)
manual format adjustment
Diffstat (limited to 'src/constmap.c')
-rw-r--r--src/constmap.c5
1 files changed, 2 insertions, 3 deletions
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)