aboutsummaryrefslogtreecommitdiff
path: root/lib/libgssapi/gss_accept_sec_context.c
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2019-07-19 22:54:09 +0000
committerBrooks Davis <brooks@FreeBSD.org>2019-07-19 22:54:09 +0000
commitb16d66754593dbf64047f5aafa32802660581adf (patch)
tree68bac974f121beb23ba7f73b99db26c6e9ebcbf3 /lib/libgssapi/gss_accept_sec_context.c
parent47c3450e50ae3a2a23b74929c3455c424e02809e (diff)
downloadsrc-b16d66754593dbf64047f5aafa32802660581adf.tar.gz
src-b16d66754593dbf64047f5aafa32802660581adf.zip
Use the __DECONST macro rather than hand rolling it.
Obtained from: CheriBSD MFC after: 1 week Sponsored by: DARPA, AFRL
Notes
Notes: svn path=/head/; revision=350157
Diffstat (limited to 'lib/libgssapi/gss_accept_sec_context.c')
-rw-r--r--lib/libgssapi/gss_accept_sec_context.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libgssapi/gss_accept_sec_context.c b/lib/libgssapi/gss_accept_sec_context.c
index 2cab71ee3dfd..afb502d84385 100644
--- a/lib/libgssapi/gss_accept_sec_context.c
+++ b/lib/libgssapi/gss_accept_sec_context.c
@@ -100,11 +100,11 @@ parse_header(const gss_buffer_t input_token, gss_OID mech_oid)
}
static gss_OID_desc krb5_mechanism =
-{9, (void *)(uintptr_t) "\x2a\x86\x48\x86\xf7\x12\x01\x02\x02"};
+{9, __DECONST(void *, "\x2a\x86\x48\x86\xf7\x12\x01\x02\x02")};
static gss_OID_desc ntlm_mechanism =
-{10, (void *)(uintptr_t) "\x2b\x06\x01\x04\x01\x82\x37\x02\x02\x0a"};
+{10, __DECONST(void *, "\x2b\x06\x01\x04\x01\x82\x37\x02\x02\x0a")};
static gss_OID_desc spnego_mechanism =
-{6, (void *)(uintptr_t) "\x2b\x06\x01\x05\x05\x02"};
+{6, __DECONST(void *, "\x2b\x06\x01\x05\x05\x02")};
static OM_uint32
choose_mech(const gss_buffer_t input, gss_OID mech_oid)