diff options
author | Ronnie Sahlberg <lsahlber@redhat.com> | 2021-10-22 09:41:24 +1000 |
---|---|---|
committer | Pavel Shilovsky <pshilovsky@samba.org> | 2022-04-29 15:07:49 -0700 |
commit | aeee69046d580333564ffc9046a9b61d2db8d53d (patch) | |
tree | 4747d9c243f293553bf3476c9988c8b9113ff8fe /cifs.upcall.c | |
parent | e2430c005d92e5ab19a63976c64c4294095c3ac7 (diff) | |
download | cifs-utils-aeee69046d580333564ffc9046a9b61d2db8d53d.tar.gz cifs-utils-aeee69046d580333564ffc9046a9b61d2db8d53d.tar.bz2 cifs-utils-aeee69046d580333564ffc9046a9b61d2db8d53d.zip |
cifs.upcall: fix compiler warning
Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
Diffstat (limited to 'cifs.upcall.c')
-rw-r--r-- | cifs.upcall.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cifs.upcall.c b/cifs.upcall.c index e9c7f5f..5e7c0a1 100644 --- a/cifs.upcall.c +++ b/cifs.upcall.c @@ -69,6 +69,10 @@ #include <cap-ng.h> #endif +#ifndef discard_const +#define discard_const(ptr) ((void *)((intptr_t)(ptr))) +#endif + static krb5_context context; static const char *prog = "cifs.upcall"; @@ -805,7 +809,7 @@ cifs_gss_get_req(const char *host, DATA_BLOB *mechtoken, DATA_BLOB *sess_key) GSS_C_NO_CREDENTIAL, /* claimant_cred_handle */ &ctx, target_name, - gss_mech_krb5, /* force krb5 */ + discard_const(gss_mech_krb5), /* force krb5 */ 0, /* flags */ 0, /* time_req */ GSS_C_NO_CHANNEL_BINDINGS, /* input_chan_bindings */ |