]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
curl_gssapi: fix build warnings by removing const
authorDaniel Stenberg <daniel@haxx.se>
Tue, 19 Oct 2021 07:37:41 +0000 (09:37 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 19 Oct 2021 08:34:20 +0000 (10:34 +0200)
Follow-up to 20e980f85b0ea6

In #7875 these inits were modified but I get two warnings that these new
typecasts are necessary for.

Closes #7876

lib/curl_gssapi.c

index 06083108ac5788bbbe8ef737c82e48ca82d5062e..8f340562bc156f2a3f33fc2cc5a94f62e68320a7 100644 (file)
 #include "memdebug.h"
 
 gss_OID_desc Curl_spnego_mech_oid = {
-  6, "\x2b\x06\x01\x05\x05\x02"
+  6, (char *)"\x2b\x06\x01\x05\x05\x02"
 };
 gss_OID_desc Curl_krb5_mech_oid = {
-  9, "\x2a\x86\x48\x86\xf7\x12\x01\x02\x02"
+  9, (char *)"\x2a\x86\x48\x86\xf7\x12\x01\x02\x02"
 };
 
 OM_uint32 Curl_gss_init_sec_context(