Use rk_UNCONST with putenv("...") to pacify -Wwrite-strings.

This commit is contained in:
Taylor R Campbell
2023-06-20 00:06:00 +00:00
committed by Nicolas Williams
parent 7223924aeb
commit a1d92fefbc
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -412,7 +412,7 @@ initiate_many(gss_name_t service, int delegate, int negotiate, int memcache,
K5BAIL(krb5_init_context(&kctx));
K5BAIL(krb5_cc_default(kctx, &def_cache));
K5BAIL(krb5_cc_resolve(kctx, "MEMORY:mem_cache", &mem_cache));
putenv("KRB5CCNAME=MEMORY:mem_cache");
putenv(rk_UNCONST("KRB5CCNAME=MEMORY:mem_cache"));
}
for (i=0; i < count; i++) {