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.