Eliminate warning.

On NetBSD, cgetent has a prototype of ``const char *const *'' for
argument two.  Many other OSes have ``char **''.  It seems that
gcc will generate a warning if you pass a char ** to it.  Casting
the value to void avoids this warning.
This commit is contained in:
Roland C. Dowdeswell
2012-02-15 13:08:33 +00:00
parent db484e73a2
commit 083780d5b5

View File

@@ -40,7 +40,7 @@ static int
login_conf_init(void)
{
char *files[] = { _PATH_LOGIN_CONF, NULL };
return cgetent(&confbuf, files, "default");
return cgetent(&confbuf, (void *)files, "default");
}
char *