From e674f691ae0a9b2e7d2b2d2c3a745691efd469a1 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Fri, 13 Nov 2015 09:49:50 -0500 Subject: Appropriately resolve const warnings in tests. Signed-off-by: Simo Sorce Reviewed-by: Robbie Harwoood --- proxy/tests/cli_srv_comm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'proxy/tests/cli_srv_comm.c') diff --git a/proxy/tests/cli_srv_comm.c b/proxy/tests/cli_srv_comm.c index 45f77e5..ae0851c 100644 --- a/proxy/tests/cli_srv_comm.c +++ b/proxy/tests/cli_srv_comm.c @@ -217,7 +217,7 @@ void *client_thread(void *pvt) gss_release_buffer(&ret_min, &out_token); - in_token.value = CLI_MSG; + in_token.value = discard_const(CLI_MSG); in_token.length = strlen(in_token.value) + 1; ret_maj = gpm_wrap(&ret_min, @@ -316,7 +316,8 @@ void *server_thread(void *pvt) goto done; } ret_maj = gpm_canonicalize_name(&ret_min, target_name, - gss_mech_krb5, &canon_name); + discard_const(gss_mech_krb5), + &canon_name); if (ret_maj) { DEBUG("gssproxy returned an error: %d\n", ret_maj); gp_log_failure(GSS_C_NO_OID, ret_maj, ret_min); -- cgit