Fix some warnings. compare_members_lists() is only used if SHADOWGRP is defined.
This commit is contained in:
parent
8377303981
commit
78c59b7261
@ -1,3 +1,8 @@
|
|||||||
|
2008-03-17 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
|
* src/grpck.c: Fix some warnings. compare_members_lists() is only
|
||||||
|
used if SHADOWGRP is defined.
|
||||||
|
|
||||||
2008-03-08 Nicolas François <nicolas.francois@centraliens.net>
|
2008-03-08 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
* NEWS, src/groupmod.c: Make sure the passwd, group, and gshadow
|
* NEWS, src/groupmod.c: Make sure the passwd, group, and gshadow
|
||||||
|
@ -85,13 +85,13 @@ static int check_members (const char *groupname,
|
|||||||
const char *fmt_prompt,
|
const char *fmt_prompt,
|
||||||
const char *fmt_syslog,
|
const char *fmt_syslog,
|
||||||
int *errors);
|
int *errors);
|
||||||
|
static void check_grp_file (int *errors, int *changed);
|
||||||
|
#ifdef SHADOWGRP
|
||||||
static void compare_members_lists (const char *groupname,
|
static void compare_members_lists (const char *groupname,
|
||||||
char **members,
|
char **members,
|
||||||
char **other_members,
|
char **other_members,
|
||||||
const char *file,
|
const char *file,
|
||||||
const char *other_file);
|
const char *other_file);
|
||||||
static void check_grp_file (int *errors, int *changed);
|
|
||||||
#ifdef SHADOWGRP
|
|
||||||
static void check_sgr_file (int *errors, int *changed);
|
static void check_sgr_file (int *errors, int *changed);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -350,6 +350,7 @@ static int check_members (const char *groupname,
|
|||||||
return members_changed;
|
return members_changed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef SHADOWGRP
|
||||||
/*
|
/*
|
||||||
* compare_members_lists - make sure the list of members is contained in
|
* compare_members_lists - make sure the list of members is contained in
|
||||||
* another list.
|
* another list.
|
||||||
@ -381,6 +382,7 @@ static void compare_members_lists (const char *groupname,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif /* SHADOWGRP */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* check_grp_file - check the content of the group file
|
* check_grp_file - check the content of the group file
|
||||||
|
Loading…
x
Reference in New Issue
Block a user