Use strict prototypes
Function declarations with no argument declare functions taking an arbitrary number of arguments. Use the special type void to declare functions taking no argument.
This commit is contained in:
1 parent
f84b8530c5
commit
45bba0e190
3 files changed
+16
-16
No files matched your search
@@ -248,7 +248,7 @@ extern struct spwd *prefix_getspnam(const char* name)
|
||||
}
|
||||
}
|
||||
|
||||
extern void prefix_setpwent()
|
||||
extern void prefix_setpwent(void)
|
||||
{
|
||||
if (!passwd_db_file) {
|
||||
setpwent();
|
||||
@@ -261,7 +261,7 @@ extern void prefix_setpwent()
|
||||
if (!fp_pwent)
|
||||
return;
|
||||
}
|
||||
extern struct passwd* prefix_getpwent()
|
||||
extern struct passwd* prefix_getpwent(void)
|
||||
{
|
||||
if (!passwd_db_file) {
|
||||
return getpwent();
|
||||
@@ -271,7 +271,7 @@ extern struct passwd* prefix_getpwent()
|
||||
}
|
||||
return fgetpwent(fp_pwent);
|
||||
}
|
||||
extern void prefix_endpwent()
|
||||
extern void prefix_endpwent(void)
|
||||
{
|
||||
if (!passwd_db_file) {
|
||||
endpwent();
|
||||
@@ -282,7 +282,7 @@ extern void prefix_endpwent()
|
||||
fp_pwent = NULL;
|
||||
}
|
||||
|
||||
extern void prefix_setgrent()
|
||||
extern void prefix_setgrent(void)
|
||||
{
|
||||
if (!group_db_file) {
|
||||
setgrent();
|
||||
@@ -295,14 +295,14 @@ extern void prefix_setgrent()
|
||||
if (!fp_grent)
|
||||
return;
|
||||
}
|
||||
extern struct group* prefix_getgrent()
|
||||
extern struct group* prefix_getgrent(void)
|
||||
{
|
||||
if (!group_db_file) {
|
||||
return getgrent();
|
||||
}
|
||||
return fgetgrent(fp_grent);
|
||||
}
|
||||
extern void prefix_endgrent()
|
||||
extern void prefix_endgrent(void)
|
||||
{
|
||||
if (!group_db_file) {
|
||||
endgrent();
|
||||
|
||||
Reference in new issue
Block a user