summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-06-27 13:21:42 +0200
committerMichael Adam <obnox@samba.org>2008-06-27 14:27:30 +0200
commit261d41a639b2a5deb14d875d3fafc7eb3b996d4c (patch)
treeef89260cd2b15393330de5192b686d76ee57a475 /source4
parentdb7bd968daa6589bd32573a188e3fc73802c4199 (diff)
downloadsamba-261d41a639b2a5deb14d875d3fafc7eb3b996d4c.tar.gz
samba-261d41a639b2a5deb14d875d3fafc7eb3b996d4c.tar.bz2
samba-261d41a639b2a5deb14d875d3fafc7eb3b996d4c.zip
ntlm_auth: eliminate "cast pointer from integer of different size" warnings on 64bit.
Michael (This used to be commit a0b2440c70a3f453c22159a02ff4a82fe6439cad)
Diffstat (limited to 'source4')
-rw-r--r--source4/utils/ntlm_auth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/utils/ntlm_auth.c b/source4/utils/ntlm_auth.c
index 6d62968b05..6a6302837e 100644
--- a/source4/utils/ntlm_auth.c
+++ b/source4/utils/ntlm_auth.c
@@ -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);