summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibC/bits/pthread_integration.h
diff options
context:
space:
mode:
authorDaniel Bertalan <dani@danielbertalan.dev>2022-01-08 15:32:59 +0100
committerLinus Groh <mail@linusgroh.de>2022-01-08 19:22:00 +0100
commitb9c753f6f9c0e738e671766c323aef82b6f04056 (patch)
treec997c9e6781fc58a8cfe47b054036d1bdb72c656 /Userland/Libraries/LibC/bits/pthread_integration.h
parenta221596614cde869d0b0ef1036c2a9e9ba48f0c5 (diff)
downloadserenity-b9c753f6f9c0e738e671766c323aef82b6f04056.zip
LibC+LibDl: Declare functions taking no arguments as taking void
In C++, a function declaration with an empty parameter list means that the function takes no arguments. In C, however, it means that the function takes an unspecified number of parameters. What we did previously was therefore non-conforming. This caused a config check to fail in the curl port, as it was able to redeclare `rand` as taking an int parameter.
Diffstat (limited to 'Userland/Libraries/LibC/bits/pthread_integration.h')
-rw-r--r--Userland/Libraries/LibC/bits/pthread_integration.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibC/bits/pthread_integration.h b/Userland/Libraries/LibC/bits/pthread_integration.h
index f671cdf064..bbc7e820de 100644
--- a/Userland/Libraries/LibC/bits/pthread_integration.h
+++ b/Userland/Libraries/LibC/bits/pthread_integration.h
@@ -31,9 +31,9 @@ int __pthread_key_delete(pthread_key_t);
void* __pthread_getspecific(pthread_key_t);
int __pthread_setspecific(pthread_key_t, const void*);
-int __pthread_self();
+int __pthread_self(void);
-void __pthread_key_destroy_for_current_thread();
+void __pthread_key_destroy_for_current_thread(void);
#define __PTHREAD_MUTEX_NORMAL 0
#define __PTHREAD_MUTEX_RECURSIVE 1