aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--get_stack_limit.c3
-rw-r--r--get_stack_space.c3
2 files changed, 2 insertions, 4 deletions
diff --git a/get_stack_limit.c b/get_stack_limit.c
index 363147a..7005727 100644
--- a/get_stack_limit.c
+++ b/get_stack_limit.c
@@ -41,9 +41,8 @@ libsimple_get_stack_limit(size_t *restrict soft, size_t *restrict hard)
if (!strcmp(line, "Max stack size "))
goto line_found;
}
-
}
-
+
line_found:
close(fd);
line = &line[sizeof("Max stack size ") - 1U];
diff --git a/get_stack_space.c b/get_stack_space.c
index 7f1fdd3..5e54aac 100644
--- a/get_stack_space.c
+++ b/get_stack_space.c
@@ -41,9 +41,8 @@ libsimple_get_stack_space(uintptr_t *restrict low, uintptr_t *restrict high)
if (!strcmp(&line[linelen - (sizeof(" [stack]\n") - 1U)], " [stack]\n"))
goto line_found;
}
-
}
-
+
line_found:
close(fd);