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:
		@@ -40,7 +40,7 @@ static int
 | 
				
			|||||||
login_conf_init(void)
 | 
					login_conf_init(void)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    char *files[] = { _PATH_LOGIN_CONF, NULL };
 | 
					    char *files[] = { _PATH_LOGIN_CONF, NULL };
 | 
				
			||||||
    return cgetent(&confbuf, files, "default");
 | 
					    return cgetent(&confbuf, (void *)files, "default");
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
char *
 | 
					char *
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user