static FILE * pwd_fp = NULL;
static int pwd_scanflag;
static const char *pwd_filename;
static struct password *pw_last = NULL;
static struct group *gr_last = NULL;
void
vendpwent(void)
}
free(line);
if (pw_last != NULL)
free(pw_last);
pw_last = pw;
return (pw);
if (gr_last != NULL)
free(gr_last);
gr_last = gr;
return (gr);