summaryrefslogtreecommitdiff
path: root/src/kernel/proc.c
diff options
context:
space:
mode:
authordzwdz2021-09-21 18:37:01 +0200
committerdzwdz2021-09-21 18:37:01 +0200
commitd9ec06192725bb6bf023120e99cbe8da33756628 (patch)
tree847ff37279af11932891e70f7f14f9071182940f /src/kernel/proc.c
parentdc7a432b877222253fe02a332fba69d077eea8fe (diff)
start using sparse's `-Wdecl`
Diffstat (limited to 'src/kernel/proc.c')
-rw-r--r--src/kernel/proc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel/proc.c b/src/kernel/proc.c
index 13ce759..b9f96c8 100644
--- a/src/kernel/proc.c
+++ b/src/kernel/proc.c
@@ -9,7 +9,7 @@
struct process *process_first;
struct process *process_current;
-uint32_t next_pid = 0;
+static uint32_t next_pid = 0;
struct process *process_seed(void) {
struct process *proc = kmalloc(sizeof *proc);
@@ -72,7 +72,7 @@ _Noreturn void process_switch_any(void) {
}
// TODO there's no check for going past the stack - VULN
-struct process *_process_find_recursive(
+static struct process *_process_find_recursive(
enum process_state target, struct process *iter) {
struct process *in;
while (iter) {