static void close_files (struct option_flags *flags);
#ifdef SHADOWGRP
static void get_group (struct group *gr, struct sgrp *sg, struct option_flags *flags);
-static void check_perms (const struct group *gr, const struct sgrp *sg);
+static void check_perms(const struct sgrp *sg);
static void update_group (struct group *gr, struct sgrp *sg);
static void change_passwd (struct group *gr, struct sgrp *sg);
#else
static void get_group (struct group *gr, struct option_flags *flags);
-static void check_perms (const struct group *gr);
+static void check_perms(void);
static void update_group (struct group *gr);
static void change_passwd (struct group *gr);
#endif
* It only returns if the user is allowed.
*/
#ifdef SHADOWGRP
-static void check_perms (const struct group *gr, const struct sgrp *sg)
+static void check_perms (const struct sgrp *sg)
#else
-static void check_perms (const struct group *gr)
+static void check_perms (void)
#endif
{
/*
* Check if the user is allowed to change the password of this group.
*/
#ifdef SHADOWGRP
- check_perms (&grent, &sgent);
+ check_perms(&sgent);
#else
- check_perms (&grent);
+ check_perms();
#endif
/*