diff options
| author | Simo Sorce <simo@redhat.com> | 2015-11-13 09:49:50 -0500 |
|---|---|---|
| committer | Robbie Harwood <rharwood@redhat.com> | 2015-12-01 17:54:05 -0500 |
| commit | e674f691ae0a9b2e7d2b2d2c3a745691efd469a1 (patch) | |
| tree | 50c13a4d731199d65b259c839867b71ec1c1ad03 /proxy/tests/cli_srv_comm.c | |
| parent | e5d0a2d58044042bd18103c934b98954d66653f9 (diff) | |
Appropriately resolve const warnings in tests.
Signed-off-by: Simo Sorce <simo@redhat.com>
Reviewed-by: Robbie Harwoood <rharwood@redhat.com>
Diffstat (limited to 'proxy/tests/cli_srv_comm.c')
| -rw-r--r-- | proxy/tests/cli_srv_comm.c | 5 |
1 files changed, 3 insertions, 2 deletions
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); |
