struct commonio_entry *gre, *tgre;
struct group *grp;
#ifdef SHADOWGRP
- struct sgrp *sgr;
+ const struct sgrp *sgr;
#endif
/*
*/
if (is_shadow) {
- sgr = (struct sgrp *) sgr_locate (grp->gr_name);
+ sgr = sgr_locate (grp->gr_name);
if (sgr == NULL) {
printf (_("no matching group file entry in %s\n"),
sgr_file);
*/
static void check_sgr_file (int *errors, bool *changed)
{
- struct group *grp;
+ const struct group *grp;
struct commonio_entry *sge, *tsge;
struct sgrp *sgr;
/*
* Make sure this entry exists in the /etc/group file.
*/
- grp = (struct group *) gr_locate (sgr->sg_name);
+ grp = gr_locate (sgr->sg_name);
if (grp == NULL) {
printf (_("no matching group file entry in %s\n"),
grp_file);
{
struct commonio_entry *pfe, *tpfe;
struct passwd *pwd;
- struct spwd *spw;
+ const struct spwd *spw;
uid_t min_sys_id = (uid_t) getdef_ulong ("SYS_UID_MIN", 101UL);
uid_t max_sys_id = (uid_t) getdef_ulong ("SYS_UID_MAX", 999UL);
spw_opened = true;
}
#endif /* WITH_TCB */
- spw = (struct spwd *) spw_locate (pwd->pw_name);
+ spw = spw_locate (pwd->pw_name);
if (NULL == spw) {
printf (_("no matching password file entry in %s\n"),
spw_dbname ());