summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2017-08-08 16:47:22 +0300
committerDan McDonald <danmcd@joyent.com>2017-11-14 11:23:32 -0500
commit4213c2d8f7d24a0383e863621115570a68fb016c (patch)
tree9ce9e660b25e8d5cc3cd044e817a5f733532e8c7
parent44d74681b047548dfbd9a7b3f4e269c98c3b393c (diff)
downloadillumos-joyent-4213c2d8f7d24a0383e863621115570a68fb016c.tar.gz
8784 sasl_plugins: variable 'maj_stat' set but not used
Reviewed by: Andrew Stormont <andyjstormont@gmail.com> Reviewed by: Robert Mustacchi <rm@joyent.com> Reviewed by: Gary Mills <gary_mills@fastmail.fm> Approved by: Dan McDonald <danmcd@joyent.com>
-rw-r--r--usr/src/lib/sasl_plugins/gssapi/gssapi.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr/src/lib/sasl_plugins/gssapi/gssapi.c b/usr/src/lib/sasl_plugins/gssapi/gssapi.c
index 2b03caf706..d1c05f7577 100644
--- a/usr/src/lib/sasl_plugins/gssapi/gssapi.c
+++ b/usr/src/lib/sasl_plugins/gssapi/gssapi.c
@@ -644,33 +644,33 @@ static context_t *gss_new_context(const sasl_utils_t *utils)
static void sasl_gss_free_context_contents(context_t *text)
{
- OM_uint32 maj_stat, min_stat;
+ OM_uint32 min_stat;
if (!text) return;
if (text->gss_ctx != GSS_C_NO_CONTEXT) {
- maj_stat = gss_delete_sec_context (&min_stat,&text->gss_ctx,GSS_C_NO_BUFFER);
+ (void) gss_delete_sec_context(&min_stat,&text->gss_ctx,GSS_C_NO_BUFFER);
text->gss_ctx = GSS_C_NO_CONTEXT;
}
if (text->client_name != GSS_C_NO_NAME) {
- maj_stat = gss_release_name(&min_stat,&text->client_name);
+ (void) gss_release_name(&min_stat,&text->client_name);
text->client_name = GSS_C_NO_NAME;
}
if (text->server_name != GSS_C_NO_NAME) {
- maj_stat = gss_release_name(&min_stat,&text->server_name);
+ (void) gss_release_name(&min_stat,&text->server_name);
text->server_name = GSS_C_NO_NAME;
}
if ( text->server_creds != GSS_C_NO_CREDENTIAL) {
- maj_stat = gss_release_cred(&min_stat, &text->server_creds);
+ (void) gss_release_cred(&min_stat, &text->server_creds);
text->server_creds = GSS_C_NO_CREDENTIAL;
}
#ifdef _SUN_SDK_
if ( text->client_creds != GSS_C_NO_CREDENTIAL) {
- maj_stat = gss_release_cred(&min_stat, &text->client_creds);
+ (void) gss_release_cred(&min_stat, &text->client_creds);
text->client_creds = GSS_C_NO_CREDENTIAL;
}