aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2024-09-22 10:12:12 +0200
committerMattias Andrée <maandree@kth.se>2024-09-22 10:12:12 +0200
commitb2cf3a8957768ba54ab6ece2d296312bb26b9ad4 (patch)
tree5e9eb7cc50cde9f4b75c2e72e6dc44123eedc89e
parentFix libsimple_random_bytes (diff)
downloadlibsimple-b2cf3a8957768ba54ab6ece2d296312bb26b9ad4.tar.gz
libsimple-b2cf3a8957768ba54ab6ece2d296312bb26b9ad4.tar.bz2
libsimple-b2cf3a8957768ba54ab6ece2d296312bb26b9ad4.tar.xz
m whitespace
Signed-off-by: Mattias Andrée <maandree@kth.se>
-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);