Bug 2995 - innetgr
innetgr
Status: RESOLVED FIXED
Product: Samba 3.0
Classification: Unclassified
Component: Build environment
3.0.20
All All
: P3 normal
: none
Assigned To: Tim Potter
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-08-12 17:02 UTC by Jason Mader
Modified: 2007-04-10 10:10 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Mader 2005-08-12 17:02:32 UTC
cc-1164 cc: WARNING File = lib/username.c, Line = 376
  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 = 376
  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 = 392
  Argument of type "const char *" is incompatible with parameter of type "char *"
          .

                if (innetgr(ngname, NULL, lowercase_user, mydomain)) {
                            ^


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);
                                      ^
Comment 1 Jason Mader 2005-08-13 06:30:15 UTC
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))
                                                       ^
Comment 2 Jason Mader 2007-04-10 10:10:09 UTC
These are the occurances still in 3.0.25,
--- smbd/password.o ---
cc-1164 c99: WARNING File = smbd/password.c, Line = 452
  Argument of type "const char *" is incompatible with parameter of type "char *"
          .

        if (innetgr(ngname, NULL, user, mydomain)) {
                    ^

cc-1164 c99: WARNING File = smbd/password.c, Line = 452
  Argument of type "const char *" is incompatible with parameter of type "char *"
          .

        if (innetgr(ngname, NULL, user, mydomain)) {
                                  ^

cc-1164 c99: WARNING File = smbd/password.c, Line = 468
  Argument of type "const char *" is incompatible with parameter of type "char *"
          .

                if (innetgr(ngname, NULL, lowercase_user, mydomain)) {
                            ^
--- lib/access.o ---
cc-1164 c99: WARNING File = lib/access.c, Line = 93
  Argument of type "const char *" is incompatible with parameter of type "char *"
          .

                netgroup_ok = innetgr(tok + 1, hostname, (char *) 0, mydomain);
                                      ^