ports/sysutils/dsh/patches/patch-parameter_c

13 lines
495 B
Text

parameter.c:132: warning: passing argument 1 of 'getnetgrent' from incompatible pointer type
--- parameter.c.orig Mon Aug 27 08:44:54 2012
+++ parameter.c Mon Aug 27 08:45:08 2012
@@ -127,7 +127,7 @@ read_machinenetgroup(linkedlist * machinelist,
#endif
if (setnetgrent(groupname) WORKAROUND_SETNETGRENT)
{
- char *hostp=NULL, *userp=NULL, *domainp=NULL;
+ const char *hostp=NULL, *userp=NULL, *domainp=NULL;
while (getnetgrent(&hostp, &userp, &domainp))
{