mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:37:45 +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:
parent
a221596614
commit
b9c753f6f9
16 changed files with 56 additions and 56 deletions
|
@ -27,9 +27,9 @@ struct spwd {
|
|||
};
|
||||
|
||||
#ifndef AK_OS_MACOS
|
||||
struct spwd* getspent();
|
||||
void setspent();
|
||||
void endspent();
|
||||
struct spwd* getspent(void);
|
||||
void setspent(void);
|
||||
void endspent(void);
|
||||
struct spwd* getspnam(const char* name);
|
||||
int putspent(struct spwd* p, FILE* stream);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue