Bug 2996 - utils/ntlm_auth.c: "const char **" to "char **" assignments
Summary: utils/ntlm_auth.c: "const char **" to "char **" assignments
Status: RESOLVED FIXED
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: Build environment (show other bugs)
Version: 3.0.20
Hardware: All All
: P3 normal
Target Milestone: none
Assignee: Tim Potter
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-12 17:34 UTC by Jason Mader (mail bounces back)
Modified: 2006-06-27 09:50 UTC (History)
0 users

See Also:


Attachments
Type changes in ntlm_auth.c (1.02 KB, patch)
2005-08-15 08:54 UTC, Jason Mader (mail bounces back)
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Mader (mail bounces back) 2005-08-12 17:34:54 UTC
cc-1515 cc: WARNING File = utils/ntlm_auth.c, Line = 756
  A value of type "const char **" cannot be assigned to an entity of type
          "char **".

        spnego.negTokenInit.mechTypes = SMB_XMALLOC_ARRAY(const char *, 3);
                                      ^

cc-1515 cc: WARNING File = utils/ntlm_auth.c, Line = 1055
  A value of type "const char **" cannot be assigned to an entity of type
          "char **".

        spnego.negTokenInit.mechTypes = my_mechs;
                                      ^

cc-1140 cc: WARNING File = utils/ntlm_auth.c, Line = 1308
  A value of type "char **" cannot be used to initialize an entity of type
          "const char **".

                const char **mechType = spnego.negTokenInit.mechTypes;
                                        ^
Comment 1 Jason Mader (mail bounces back) 2005-08-15 08:54:21 UTC
Created attachment 1377 [details]
Type changes in ntlm_auth.c
Comment 2 Andrew Bartlett 2005-08-15 15:55:49 UTC
This just changes the warnings, it doesn't fix the problem.  Indeed, it is not
possible to easily fix the problem, and there isn't a real problem anyway. 
Application of the discard_const_p() macro (used a lot on Samba4) would shut the
compiler up.
Comment 3 Jason Mader (mail bounces back) 2006-06-27 09:50:06 UTC
Warning is gone from 3.0.23rc3