Skip to content

Commit 213cd30

Browse files
committed
refactor(shell): mark shell_loop() as _Noreturn
1 parent 06ea66e commit 213cd30

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

kernel/include/shell/shell.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#ifndef SHELL_H
22
#define SHELL_H
33

4-
void shell_loop();
4+
_Noreturn void shell_loop();
55

66
#endif

kernel/shell/shell.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include <stdio.h>
22

3-
void shell_loop() {
3+
_Noreturn void shell_loop() {
44
for (;;) {
55
printf("\033[1;32m~$\033[0m ");
66
char str[128];

0 commit comments

Comments
 (0)