From c42c1cb6784723c3354dd679390bea3d593e22c1 Mon Sep 17 00:00:00 2001 From: Tomas Mraz Date: Wed, 15 Dec 2010 16:16:04 +0100 Subject: [PATCH] Clean up unnecessary assignment. --- src/security.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/security.c b/src/security.c index 04a3db4..3ea7a1f 100644 --- a/src/security.c +++ b/src/security.c @@ -41,15 +41,14 @@ static int cron_conv(int num_msg, const struct pam_message **msgm, struct pam_response **response, void *appdata_ptr) { - struct pam_message**m = msgm; int i; for (i = 0; i < num_msg; i++) { - switch (m[i]->msg_style) { + switch (msgm[i]->msg_style) { case PAM_ERROR_MSG: case PAM_TEXT_INFO: - if (m[i]->msg != NULL) { - log_it("CRON", getpid(), "pam_message", m[i]->msg, 0); + if (msgm[i]->msg != NULL) { + log_it("CRON", getpid(), "pam_message", msgm[i]->msg, 0); } break; default: -- 2.40.0