summaryrefslogtreecommitdiff
path: root/src/libsystem/config-parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libsystem/config-parser.c')
-rw-r--r--src/libsystem/config-parser.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/libsystem/config-parser.c b/src/libsystem/config-parser.c
index e6ade0e..2799f0a 100644
--- a/src/libsystem/config-parser.c
+++ b/src/libsystem/config-parser.c
@@ -103,9 +103,7 @@ static int config_parse_table(
return 0;
}
-int config_parse(
- const char *filename,
- void *table) {
+int config_parse(const char *filename, void *table) {
_cleanup_fclose_ FILE *f = NULL;
char *sections[MAX_SECTION] = { 0 };
@@ -140,12 +138,12 @@ int config_parse(
if (*l == '[') {
len = strlen(l);
- if (l[len-1] != ']') {
+ if (l[len - 1] != ']') {
r = -EBADMSG;
goto finish;
}
- n = strndup(l+1, len-2);
+ n = strndup(l + 1, len - 2);
if (!n) {
r = -ENOMEM;
goto finish;
@@ -203,7 +201,7 @@ int config_parse(
r = 0;
finish:
- for (i=0; i<num_section; i++)
+ for (i = 0; i < num_section; i++)
if (sections[i])
free(sections[i]);