From: nekral-guest Date: Mon, 17 Mar 2008 23:00:49 +0000 (+0000) Subject: Fix some warnings. compare_members_lists() is only used if SHADOWGRP is defined. X-Git-Tag: 4.1.1~21 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=78c59b7261eb9f3c8fa2b9efa251e34e3e58fa6c;p=shadow Fix some warnings. compare_members_lists() is only used if SHADOWGRP is defined. --- diff --git a/ChangeLog b/ChangeLog index f628a310..cc181faa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-03-17 Nicolas François + + * src/grpck.c: Fix some warnings. compare_members_lists() is only + used if SHADOWGRP is defined. + 2008-03-08 Nicolas François * NEWS, src/groupmod.c: Make sure the passwd, group, and gshadow diff --git a/src/grpck.c b/src/grpck.c index 390d411e..999d083f 100644 --- a/src/grpck.c +++ b/src/grpck.c @@ -85,13 +85,13 @@ static int check_members (const char *groupname, const char *fmt_prompt, const char *fmt_syslog, int *errors); +static void check_grp_file (int *errors, int *changed); +#ifdef SHADOWGRP static void compare_members_lists (const char *groupname, char **members, char **other_members, const char *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); #endif @@ -350,6 +350,7 @@ static int check_members (const char *groupname, return members_changed; } +#ifdef SHADOWGRP /* * compare_members_lists - make sure the list of members is contained in * 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