1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 18:27:35 +00:00

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.
This commit is contained in:
Daniel Bertalan 2022-01-08 15:32:59 +01:00 committed by Linus Groh
parent a221596614
commit b9c753f6f9
16 changed files with 56 additions and 56 deletions

View file

@ -37,11 +37,11 @@ time_t timegm(struct tm*);
time_t time(time_t*);
char* ctime(const time_t*);
char* ctime_r(const time_t* tm, char* buf);
void tzset();
void tzset(void);
char* asctime(const struct tm*);
char* asctime_r(const struct tm*, char* buf);
clock_t clock();
clock_t clock(void);
int clock_gettime(clockid_t, struct timespec*);
int clock_settime(clockid_t, struct timespec*);