r6704: fix compiler warning
authorStefan Metzmacher <metze@samba.org>
Tue, 10 May 2005 10:59:06 +0000 (10:59 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:16:36 +0000 (13:16 -0500)
metze

source/auth/gensec/gensec_gsskrb5.c

index 8fe1e0d2243501071dd2548abd5707ac35cf5ee4..89f7f9e36ad5942cd8272e133c1842f0814ef3bf 100644 (file)
@@ -464,7 +464,7 @@ static NTSTATUS gensec_gsskrb5_sign_packet(struct gensec_security *gensec_securi
        ssize_t sig_length = 0;
 
        input_token.length = length;
        ssize_t sig_length = 0;
 
        input_token.length = length;
-       input_token.value = data;
+       input_token.value = discard_const_p(uint8_t *, data);
 
        maj_stat = gss_wrap(&min_stat, 
                            gensec_gsskrb5_state->gssapi_context,
 
        maj_stat = gss_wrap(&min_stat, 
                            gensec_gsskrb5_state->gssapi_context,