diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2007-09-07 13:31:15 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 15:05:26 -0500 |
commit | 6cf69fee189857ae6f85cd3f81a6a58364839942 (patch) | |
tree | 06d80ff7f9c730a0ae70526f94d88acea800eccd /source4/auth | |
parent | bd5a802a26f427779663a3de5f6d49f352b7c473 (diff) | |
download | samba-6cf69fee189857ae6f85cd3f81a6a58364839942.tar.gz samba-6cf69fee189857ae6f85cd3f81a6a58364839942.tar.bz2 samba-6cf69fee189857ae6f85cd3f81a6a58364839942.zip |
r24994: Fix some C++ warnings.
(This used to be commit 925abf74fa1ed5ae726bae8781ec549302786b39)
Diffstat (limited to 'source4/auth')
-rw-r--r-- | source4/auth/gensec/gensec.c | 2 | ||||
-rw-r--r-- | source4/auth/gensec/gensec_krb5.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/source4/auth/gensec/gensec.c b/source4/auth/gensec/gensec.c index 25366dc246..51d0056920 100644 --- a/source4/auth/gensec/gensec.c +++ b/source4/auth/gensec/gensec.c @@ -1222,7 +1222,7 @@ NTSTATUS gensec_register(const struct gensec_security_ops *ops) return NT_STATUS_NO_MEMORY; } - generic_security_ops[gensec_num_backends] = discard_const(ops); + generic_security_ops[gensec_num_backends] = discard_const_p(struct gensec_security_ops, ops); gensec_num_backends++; generic_security_ops[gensec_num_backends] = NULL; diff --git a/source4/auth/gensec/gensec_krb5.c b/source4/auth/gensec/gensec_krb5.c index 87ce571fc0..a64da5128f 100644 --- a/source4/auth/gensec/gensec_krb5.c +++ b/source4/auth/gensec/gensec_krb5.c @@ -191,7 +191,7 @@ static NTSTATUS gensec_krb5_server_start(struct gensec_security *gensec_security return nt_status; } - gensec_krb5_state = gensec_security->private_data; + gensec_krb5_state = (struct gensec_krb5_state *)gensec_security->private_data; gensec_krb5_state->state_position = GENSEC_KRB5_SERVER_START; return NT_STATUS_OK; @@ -203,7 +203,7 @@ static NTSTATUS gensec_fake_gssapi_krb5_server_start(struct gensec_security *gen if (NT_STATUS_IS_OK(nt_status)) { struct gensec_krb5_state *gensec_krb5_state; - gensec_krb5_state = gensec_security->private_data; + gensec_krb5_state = (struct gensec_krb5_state *)gensec_security->private_data; gensec_krb5_state->gssapi = True; } return nt_status; @@ -240,7 +240,7 @@ static NTSTATUS gensec_krb5_client_start(struct gensec_security *gensec_security return nt_status; } - gensec_krb5_state = gensec_security->private_data; + gensec_krb5_state = (struct gensec_krb5_state *)gensec_security->private_data; gensec_krb5_state->state_position = GENSEC_KRB5_CLIENT_START; principal = gensec_get_target_principal(gensec_security); |