Make eligible functions static

The codebase is already very disciplined in making any function which
can be `static`, but there are a few that appear to have slipped through
the cracks.
This commit is contained in:
Kevin Svetlitski
2023-05-08 12:37:18 -07:00
committed by Qi Wang
parent 6841110bd6
commit 70344a2d38
9 changed files with 16 additions and 14 deletions

View File

@@ -9,19 +9,20 @@ void fake_abort(const char *message) {
fake_abort_called = true;
}
void
static void
test_double_free_pre(void) {
safety_check_set_abort(&fake_abort);
fake_abort_called = false;
}
void
static void
test_double_free_post() {
expect_b_eq(fake_abort_called, true, "Double-free check didn't fire.");
safety_check_set_abort(NULL);
}
bool tcache_enabled() {
static bool
tcache_enabled() {
bool enabled;
size_t sz = sizeof(enabled);
assert_d_eq(