From 083780d5b53779703e01694bae46ac6583047616 Mon Sep 17 00:00:00 2001 From: "Roland C. Dowdeswell" Date: Wed, 15 Feb 2012 13:08:33 +0000 Subject: [PATCH] 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. --- appl/login/conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appl/login/conf.c b/appl/login/conf.c index 2b141359c..bf186d9b6 100644 --- a/appl/login/conf.c +++ b/appl/login/conf.c @@ -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 *