about summary refs log tree commit diff
path: root/boot
diff options
context:
space:
mode:
authorMel <mel@rnrd.eu>2025-06-15 03:55:28 +0200
committerMel <mel@rnrd.eu>2025-06-15 03:55:28 +0200
commit19d2a48bb4034b00d4ffbb51fcc37f55af707e05 (patch)
tree984b1ffa23de183435e7aef00c4137e637dfd785 /boot
parent7ad3f400dde57f06ef52c2a9cf788a18d1891b7d (diff)
downloadcatskill-19d2a48bb4034b00d4ffbb51fcc37f55af707e05.tar.zst
catskill-19d2a48bb4034b00d4ffbb51fcc37f55af707e05.zip
`void` for parameter-less functions (I keep forgetting I'm not writing C++ anymore.. ^^')
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'boot')
-rw-r--r--boot/common.c4
-rw-r--r--boot/lex.c2
-rw-r--r--boot/parse.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/boot/common.c b/boot/common.c
index b9da4cf..8291a51 100644
--- a/boot/common.c
+++ b/boot/common.c
@@ -142,7 +142,7 @@ string_new(const ascii* data, uint length)
 }
 
 struct String
-string_empty()
+string_empty(void)
 {
     return (struct String){
         .data = nil,
@@ -213,7 +213,7 @@ struct String_Array
 
 // initializes a string array with no strings.
 struct String_Array
-string_array_new()
+string_array_new(void)
 {
     return (struct String_Array){
         .strings = { 0 },
diff --git a/boot/lex.c b/boot/lex.c
index 84657fa..30ccd85 100644
--- a/boot/lex.c
+++ b/boot/lex.c
@@ -360,7 +360,7 @@ token_simple(enum Token_Kind kind, Pos pos, struct Cursor location)
 }
 
 struct Token
-token_none()
+token_none(void)
 {
     return token_simple(TOKEN_NONE, 0, (struct Cursor){ 0 });
 }
diff --git a/boot/parse.c b/boot/parse.c
index 9aeaf94..658a522 100644
--- a/boot/parse.c
+++ b/boot/parse.c
@@ -34,7 +34,7 @@ parser_error(enum Parser_Error_Kind kind)
 }
 
 struct Parser_Error
-parser_error_none()
+parser_error_none(void)
 {
     return parser_error(PARSER_ERROR_NONE);
 }