From f81bef36f83f0787dc84ee86187f2d7668a69758 Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Tue, 24 Jan 2012 12:59:32 -0500 Subject: - remove unused variables --- src/nis.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/nis.c') diff --git a/src/nis.c b/src/nis.c index 514b474..6144806 100644 --- a/src/nis.c +++ b/src/nis.c @@ -892,7 +892,7 @@ nis_process_request(struct plugin_state *state, AUTH *request_auth, *reply_auth; char auth_buf[MAX_AUTH_BYTES]; struct rpc_msg request, reply; - int superuser, auth_flavor, auth_len; + int auth_flavor, auth_len; struct ypresp_val reply_val; struct ypresp_key_val reply_key_val; struct ypresp_all reply_all; @@ -948,26 +948,22 @@ nis_process_request(struct plugin_state *state, slapi_log_error(SLAPI_LOG_PLUGIN, state->plugin_desc->spd_id, "validated auth_sys creds\n"); - superuser = 0; break; case AUTH_NONE: slapi_log_error(SLAPI_LOG_PLUGIN, state->plugin_desc->spd_id, "validated \"none\" creds\n"); - superuser = 0; break; default: slapi_log_error(SLAPI_LOG_PLUGIN, state->plugin_desc->spd_id, "validated other creds\n"); - superuser = 0; break; } } else { slapi_log_error(SLAPI_LOG_PLUGIN, state->plugin_desc->spd_id, "failed to validate client creds\n"); - superuser = 0; } auth_destroy(request_auth); -- cgit