mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 15:07: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
|
@ -20,9 +20,9 @@ struct group {
|
|||
char** gr_mem;
|
||||
};
|
||||
|
||||
struct group* getgrent();
|
||||
void setgrent();
|
||||
void endgrent();
|
||||
struct group* getgrent(void);
|
||||
void setgrent(void);
|
||||
void endgrent(void);
|
||||
struct group* getgrnam(const char* name);
|
||||
struct group* getgrgid(gid_t);
|
||||
int putgrent(const struct group*, FILE*);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue