diff options
author | Christian Grothoff <christian@grothoff.org> | 2023-02-01 19:59:49 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2023-02-01 20:00:00 +0100 |
commit | 66580ab8268c4e020f01b10d8c46413b486b9b1f (patch) | |
tree | 8f1a30e24880d61fa5892a5dfb73e641374b14e0 | |
parent | 0effaa71dc569a1c7ecd97d065638b5c75bdba5e (diff) | |
download | gnunet-66580ab8268c4e020f01b10d8c46413b486b9b1f.tar.gz gnunet-66580ab8268c4e020f01b10d8c46413b486b9b1f.zip |
-better indentation
m--------- | contrib/gana | 0 | ||||
m--------- | contrib/sphinx | 0 | ||||
-rw-r--r-- | src/util/configuration.c | 24 |
3 files changed, 17 insertions, 7 deletions
diff --git a/contrib/gana b/contrib/gana | |||
Subproject 66228b8a4306f028d843d78fbfcca54260539ff | Subproject 79163ab6ea6f6cfe7f4311f91fb45c747b8c33d | ||
diff --git a/contrib/sphinx b/contrib/sphinx | |||
Subproject 9c5b9d9040d21542eff792e26624cf9669b127a | Subproject 4f40b5deca02c8dc64ff6c73e6602e6abdd1bae | ||
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, | |||
801 | *end = '\0'; | 801 | *end = '\0'; |
802 | directive = line + 1; | 802 | directive = line + 1; |
803 | 803 | ||
804 | if (0 == strcasecmp (directive, "INLINE")) | 804 | if (0 == strcasecmp (directive, |
805 | "INLINE")) | ||
805 | { | 806 | { |
806 | const char *path = end + 1; | 807 | const char *path = end + 1; |
807 | 808 | ||
@@ -816,7 +817,8 @@ GNUNET_CONFIGURATION_deserialize (struct GNUNET_CONFIGURATION_Handle *cfg, | |||
816 | source_filename, | 817 | source_filename, |
817 | nr); | 818 | nr); |
818 | } | 819 | } |
819 | else if (0 == strcasecmp (directive, "INLINE-MATCHING")) | 820 | else if (0 == strcasecmp (directive, |
821 | "INLINE-MATCHING")) | ||
820 | { | 822 | { |
821 | const char *path = end + 1; | 823 | const char *path = end + 1; |
822 | 824 | ||
@@ -831,7 +833,8 @@ GNUNET_CONFIGURATION_deserialize (struct GNUNET_CONFIGURATION_Handle *cfg, | |||
831 | source_filename, | 833 | source_filename, |
832 | nr); | 834 | nr); |
833 | } | 835 | } |
834 | else if (0 == strcasecmp (directive, "INLINE-SECRET")) | 836 | else if (0 == strcasecmp (directive, |
837 | "INLINE-SECRET")) | ||
835 | { | 838 | { |
836 | char *secname = end + 1; | 839 | char *secname = end + 1; |
837 | char *secname_end; | 840 | char *secname_end; |
@@ -881,7 +884,8 @@ GNUNET_CONFIGURATION_deserialize (struct GNUNET_CONFIGURATION_Handle *cfg, | |||
881 | } | 884 | } |
882 | continue; | 885 | continue; |
883 | } | 886 | } |
884 | if (('[' == line[0]) && (']' == line[line_size - 1])) | 887 | if ( ('[' == line[0]) && |
888 | (']' == line[line_size - 1]) ) | ||
885 | { | 889 | { |
886 | /* [value] */ | 890 | /* [value] */ |
887 | line[line_size - 1] = '\0'; | 891 | line[line_size - 1] = '\0'; |
@@ -923,18 +927,24 @@ GNUNET_CONFIGURATION_deserialize (struct GNUNET_CONFIGURATION_Handle *cfg, | |||
923 | 927 | ||
924 | /* remove quotes */ | 928 | /* remove quotes */ |
925 | i = 0; | 929 | i = 0; |
926 | if (('"' == value[0]) && ('"' == value[strlen (value) - 1])) | 930 | if ( ('"' == value[0]) && |
931 | ('"' == value[strlen (value) - 1]) ) | ||
927 | { | 932 | { |
928 | value[strlen (value) - 1] = '\0'; | 933 | value[strlen (value) - 1] = '\0'; |
929 | value++; | 934 | value++; |
930 | } | 935 | } |
931 | GNUNET_CONFIGURATION_set_value_string (cfg, section, tag, &value[i]); | 936 | GNUNET_CONFIGURATION_set_value_string (cfg, |
937 | section, | ||
938 | tag, | ||
939 | &value[i]); | ||
932 | if (cfg->diagnostics) | 940 | if (cfg->diagnostics) |
933 | { | 941 | { |
934 | set_entry_hint (cfg, | 942 | set_entry_hint (cfg, |
935 | section, | 943 | section, |
936 | tag, | 944 | tag, |
937 | source_filename ? source_filename : "<input>", | 945 | source_filename |
946 | ? source_filename | ||
947 | : "<input>", | ||
938 | nr); | 948 | nr); |
939 | } | 949 | } |
940 | GNUNET_free (tag); | 950 | GNUNET_free (tag); |