Compiling lib/username.c cc-1164 cc: WARNING File = lib/username.c, Line = 322 Argument of type "const char *" is incompatible with parameter of type "char *" . if (innetgr(ngname, NULL, user, mydomain)) { ^ cc-1164 cc: WARNING File = lib/username.c, Line = 322 Argument of type "const char *" is incompatible with parameter of type "char *" . if (innetgr(ngname, NULL, user, mydomain)) { ^ cc-1164 cc: WARNING File = lib/username.c, Line = 338 Argument of type "const char *" is incompatible with parameter of type "char *" . if (innetgr(ngname, NULL, lowercase_user, mydomain)) { ^
On Irix <netdb.h>: extern int innetgr(char *, char *, char *, char *);
This parameter is "const char *" on several other OS'es (Linux, Mac OS X, FreeBSD, OpenBSD).
Compiling lib/access.c cc-1164 cc: WARNING File = lib/access.c, Line = 94 Argument of type "const char *" is incompatible with parameter of type "char *" . netgroup_ok = innetgr(tok + 1, hostname, (char *) 0, mydomain); ^
Compiling auth/auth_rhosts.c cc-1164 cc: WARNING File = auth/auth_rhosts.c, Line = 91 Argument of type "const char *" is incompatible with parameter of type "char *" . if (mydomain && innetgr(file_host,remote,user,mydomain)) ^ cc-1164 cc: WARNING File = auth/auth_rhosts.c, Line = 91 Argument of type "const char *" is incompatible with parameter of type "char *" . if (mydomain && innetgr(file_host,remote,user,mydomain)) ^
Thanks. I'm not going to fix this one. Mostly because this seems to be an IRIX only issue. Not that IRIX isn't important, but the hoops to just through to get the compiler to be quiet would make the code look a lot messier. Someone else can send in a patch for review though. And i'm happy to re-evaluate this decision.