]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Rename variable to avoid collision with poll().
authorGuy Harris <[email protected]>
Thu, 17 Sep 2015 19:19:22 +0000 (12:19 -0700)
committerGuy Harris <[email protected]>
Thu, 17 Sep 2015 19:19:22 +0000 (12:19 -0700)
That eliminates some compiler warnings.

print-pgm.c

index 6b02d34e9a3b0028b8c89f5937649e847ffbd972..ddba527ff95d77e04446e6cbbc65ff58b6d0f214 100644 (file)
@@ -274,14 +274,14 @@ pgm_print(netdissect_options *ndo,
        }
 
        case PGM_POLL: {
-           const struct pgm_poll *poll;
+           const struct pgm_poll *poll_msg;
 
-           poll = (const struct pgm_poll *)(pgm + 1);
-           ND_TCHECK(*poll);
+           poll_msg = (const struct pgm_poll *)(pgm + 1);
+           ND_TCHECK(*poll_msg);
            ND_PRINT((ndo, "POLL seq %u round %u",
-                        EXTRACT_32BITS(&poll->pgmp_seq),
-                         EXTRACT_16BITS(&poll->pgmp_round)));
-           bp = (const u_char *) (poll + 1);
+                        EXTRACT_32BITS(&poll_msg->pgmp_seq),
+                         EXTRACT_16BITS(&poll_msg->pgmp_round)));
+           bp = (const u_char *) (poll_msg + 1);
            break;
        }
        case PGM_POLR: {