]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ntlm_auth: eliminate "cast pointer from integer of different size" warnings on 64bit.
authorMichael Adam <obnox@samba.org>
Fri, 27 Jun 2008 11:21:42 +0000 (13:21 +0200)
committerMichael Adam <obnox@samba.org>
Fri, 27 Jun 2008 12:27:30 +0000 (14:27 +0200)
Michael

source/utils/ntlm_auth.c

index 6d62968b05467703cc47110e4d26c3907cf4515c..6a6302837e400a770647f8d7776221f985a100e1 100644 (file)
@@ -328,7 +328,7 @@ static const char *get_password(struct cli_credentials *credentials)
        char *password = NULL;
        
        /* Ask for a password */
-       mux_printf((unsigned int)credentials->priv_data, "PW\n");
+       mux_printf((unsigned int)(uintptr_t)credentials->priv_data, "PW\n");
        credentials->priv_data = NULL;
 
        manage_squid_request(cmdline_lp_ctx, NUM_HELPER_MODES /* bogus */, manage_gensec_get_pw_request, (void **)&password);
@@ -506,7 +506,7 @@ static void manage_gensec_request(enum stdio_helper_mode stdio_helper_mode,
                        cli_credentials_set_password(creds, state->set_password, CRED_SPECIFIED);
                } else {
                        cli_credentials_set_password_callback(creds, get_password);
-                       creds->priv_data = (void*)mux_id;
+                       creds->priv_data = (void*)(uintptr_t)mux_id;
                }
                if (opt_workstation) {
                        cli_credentials_set_workstation(creds, opt_workstation, CRED_SPECIFIED);