Bug 3866 - libsmb/libsmbclient.c: "smbc_get_auth_data_with_context_fn"
Summary: libsmb/libsmbclient.c: "smbc_get_auth_data_with_context_fn"
Status: RESOLVED FIXED
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: libsmbclient (show other bugs)
Version: 3.0.23
Hardware: SGI IRIX
: P3 normal
Target Milestone: none
Assignee: Derrell Lipman
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-26 16:44 UTC by Jason Mader (mail bounces back)
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 (mail bounces back) 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