From 66580ab8268c4e020f01b10d8c46413b486b9b1f Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 1 Feb 2023 19:59:49 +0100 Subject: -better indentation --- contrib/gana | 2 +- contrib/sphinx | 2 +- src/util/configuration.c | 24 +++++++++++++++++------- 3 files changed, 19 insertions(+), 9 deletions(-) diff --git a/contrib/gana b/contrib/gana index 66228b8a4..79163ab6e 160000 --- a/contrib/gana +++ b/contrib/gana @@ -1 +1 @@ -Subproject commit 66228b8a4306f028d843d78fbfcca54260539ff9 +Subproject commit 79163ab6ea6f6cfe7f4311f91fb45c747b8c33da diff --git a/contrib/sphinx b/contrib/sphinx index 9c5b9d904..4f40b5dec 160000 --- a/contrib/sphinx +++ b/contrib/sphinx @@ -1 +1 @@ -Subproject commit 9c5b9d9040d21542eff792e26624cf9669b127aa +Subproject commit 4f40b5deca02c8dc64ff6c73e6602e6abdd1bae2 diff --git a/src/util/configuration.c b/src/util/configuration.c index 1a66458db..b7ca377a9 100644 --- a/src/util/configuration.c +++ b/src/util/configuration.c @@ -801,7 +801,8 @@ GNUNET_CONFIGURATION_deserialize (struct GNUNET_CONFIGURATION_Handle *cfg, *end = '\0'; directive = line + 1; - if (0 == strcasecmp (directive, "INLINE")) + if (0 == strcasecmp (directive, + "INLINE")) { const char *path = end + 1; @@ -816,7 +817,8 @@ GNUNET_CONFIGURATION_deserialize (struct GNUNET_CONFIGURATION_Handle *cfg, source_filename, nr); } - else if (0 == strcasecmp (directive, "INLINE-MATCHING")) + else if (0 == strcasecmp (directive, + "INLINE-MATCHING")) { const char *path = end + 1; @@ -831,7 +833,8 @@ GNUNET_CONFIGURATION_deserialize (struct GNUNET_CONFIGURATION_Handle *cfg, source_filename, nr); } - else if (0 == strcasecmp (directive, "INLINE-SECRET")) + else if (0 == strcasecmp (directive, + "INLINE-SECRET")) { char *secname = end + 1; char *secname_end; @@ -881,7 +884,8 @@ GNUNET_CONFIGURATION_deserialize (struct GNUNET_CONFIGURATION_Handle *cfg, } continue; } - if (('[' == line[0]) && (']' == line[line_size - 1])) + if ( ('[' == line[0]) && + (']' == line[line_size - 1]) ) { /* [value] */ line[line_size - 1] = '\0'; @@ -923,18 +927,24 @@ GNUNET_CONFIGURATION_deserialize (struct GNUNET_CONFIGURATION_Handle *cfg, /* remove quotes */ i = 0; - if (('"' == value[0]) && ('"' == value[strlen (value) - 1])) + if ( ('"' == value[0]) && + ('"' == value[strlen (value) - 1]) ) { value[strlen (value) - 1] = '\0'; value++; } - GNUNET_CONFIGURATION_set_value_string (cfg, section, tag, &value[i]); + GNUNET_CONFIGURATION_set_value_string (cfg, + section, + tag, + &value[i]); if (cfg->diagnostics) { set_entry_hint (cfg, section, tag, - source_filename ? source_filename : "", + source_filename + ? source_filename + : "", nr); } GNUNET_free (tag); -- cgit v1.2.3