Skip to content

Commit 31c8773

Browse files
committed
chore: remove unused vars and better names
Signed-off-by: 0aids <aidanlldanu@gmail.com>
1 parent 694cfe1 commit 31c8773

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

components/backtracer/unwind_helpers.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
#define UNW_LOCAL_ONLY
44
#include <libunwind.h>
55

6-
#define INPUT_CAP 1
76
static seL4_MessageInfo_t empty_msg = { 0 };
87
uintptr_t unwind_helper_channel_to_backtracer = 0;
98

examples/backtrace_test/faulter.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,12 @@
44
#include <stdint.h>
55
#define LOG(...) sddf_printf("FAULTER | " __VA_ARGS__)
66

7-
const char *timestamp = __TIMESTAMP__;
8-
// Get a random-ish pointer to low-ish memory
9-
uintptr_t happy = 0;
7+
uintptr_t faulty_ptr = 0;
108

119
void recurseFault(int depth)
1210
{
1311
if (depth == 0) {
14-
*(volatile int *)happy;
12+
*(volatile int *)faulty_ptr;
1513
return;
1614
}
1715
recurseFault(--depth);

0 commit comments

Comments
 (0)