Bug 3866 - libsmb/libsmbclient.c: "smbc_get_auth_data_with_context_fn"
libsmb/libsmbclient.c: "smbc_get_auth_data_with_context_fn"
Status: RESOLVED FIXED
Product: Samba 3.0
Classification: Unclassified
Component: libsmbclient
3.0.23
SGI IRIX
: P3 normal
: none
Assigned To: Derrell Lipman
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-06-26 16:44 UTC by Jason Mader
Modified: 2006-06-26 21:35 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 2006-06-26 16:44:34 UTC
--- libsmb/libsmbclient.o ---
cc-1515 c99: WARNING File = libsmb/libsmbclient.c, Line = 6019
  A value of type "void *" cannot be assigned to an entity of type
          "smbc_get_auth_data_with_context_fn".

                  context->internal->_auth_fn_with_context = option_value;
                                                           ^
Comment 1 Derrell Lipman 2006-06-26 21:35:39 UTC
Fixed by check-in 16550 (in Samba3 branch) and 16551 (in trunk).  Thanks for the report!

I've fixed it by replacing the casts to the various types with use of variable argument lists to always obtain the correct type.  This is now legal C, so should compile without error.  Please let me know if you still see any problems.

Derrell