mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:17: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:
parent
a221596614
commit
b9c753f6f9
16 changed files with 56 additions and 56 deletions
|
@ -49,7 +49,7 @@ int fgetc(FILE*);
|
|||
int fgetc_unlocked(FILE*);
|
||||
int getc(FILE*);
|
||||
int getc_unlocked(FILE* stream);
|
||||
int getchar();
|
||||
int getchar(void);
|
||||
ssize_t getdelim(char**, size_t*, int, FILE*);
|
||||
ssize_t getline(char**, size_t*, FILE*);
|
||||
int ungetc(int c, FILE*);
|
||||
|
@ -94,7 +94,7 @@ int setvbuf(FILE*, char* buf, int mode, size_t);
|
|||
void setbuf(FILE*, char* buf);
|
||||
void setlinebuf(FILE*);
|
||||
int rename(const char* oldpath, const char* newpath);
|
||||
FILE* tmpfile();
|
||||
FILE* tmpfile(void);
|
||||
char* tmpnam(char*);
|
||||
FILE* popen(const char* command, const char* type);
|
||||
int pclose(FILE*);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue