]> granicus.if.org Git - cronie/commitdiff
Clean up unnecessary assignment.
authorTomas Mraz <tmraz@fedoraproject.org>
Wed, 15 Dec 2010 15:16:04 +0000 (16:16 +0100)
committerTomas Mraz <tmraz@fedoraproject.org>
Wed, 15 Dec 2010 15:16:04 +0000 (16:16 +0100)
src/security.c

index 04a3db41fdf5669f6bfc519517891f4ae44d7a43..3ea7a1f0d7a6f9d5676765dc17be0d26544293e7 100644 (file)
@@ -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: