From b0e071e9647b1da63121e58e61412d1af41cd0f1 Mon Sep 17 00:00:00 2001 From: apio Date: Sat, 15 Oct 2022 11:39:13 +0200 Subject: [PATCH] libc: Make functions with no arguments be defined as type function(void) Instead of type function(). --- libs/libc/include/luna.h | 2 +- libs/libc/include/stdlib.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/libc/include/luna.h b/libs/libc/include/luna.h index 66df537a..cfcfafb4 100644 --- a/libs/libc/include/luna.h +++ b/libs/libc/include/luna.h @@ -10,7 +10,7 @@ extern "C" #endif /* Returns the current program's thread identifier. */ - pid_t gettid(); + pid_t gettid(void); /* Sleeps for ms milliseconds. */ unsigned int msleep(unsigned int ms); diff --git a/libs/libc/include/stdlib.h b/libs/libc/include/stdlib.h index a87fddb3..16e4053c 100644 --- a/libs/libc/include/stdlib.h +++ b/libs/libc/include/stdlib.h @@ -10,7 +10,7 @@ extern "C" #endif /* Aborts the program. */ - __lc_noreturn void abort(); + __lc_noreturn void abort(void); /* Normally exits the program with the specified status code. */ __lc_noreturn void exit(int status);