r17605: Some C++ warnings
[nivanova/samba-autobuild/.git] / source3 / nsswitch / winbindd_dual.c
index 874b480214007e798f0e675ed6703a975e422683..32d85688b67fe84fc242086ae95127c3b1fe62d4 100644 (file)
@@ -524,7 +524,8 @@ static void account_lockout_policy_handler(struct timed_event *te,
                                           const struct timeval *now,
                                           void *private_data)
 {
-       struct winbindd_child *child = private_data;
+       struct winbindd_child *child =
+               (struct winbindd_child *)private_data;
 
        struct winbindd_methods *methods;
        SAM_UNK_INFO_12 lockout_policy;
@@ -823,7 +824,8 @@ static BOOL fork_domain_child(struct winbindd_child *child)
                 * structure needs to be fetched via the
                 * winbindd_cache. Hmm. That needs fixing... */
 
-               if (write_data(state.sock, (void *)&state.response.result,
+               if (write_data(state.sock,
+                              (const char *)&state.response.result,
                               sizeof(state.response.result)) !=
                    sizeof(state.response.result)) {
                        DEBUG(0, ("Could not write result\n"));