diff options
author | Guy Harris <guy@alum.mit.edu> | 2015-09-17 12:19:22 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2015-09-17 12:19:22 -0700 |
commit | 1af4cb9ad8b07bb745050e2325afe2ef56bb470c (patch) | |
tree | 7c1426f5f2b3a161c4397e9bf6412983661b564f /print-pgm.c | |
parent | 027c7f75d8355a255ecd7f2149f10ffd46458aff (diff) | |
download | tcpdump-1af4cb9ad8b07bb745050e2325afe2ef56bb470c.tar.gz |
Rename variable to avoid collision with poll().
That eliminates some compiler warnings.
Diffstat (limited to 'print-pgm.c')
-rw-r--r-- | print-pgm.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/print-pgm.c b/print-pgm.c index 6b02d34e..ddba527f 100644 --- a/print-pgm.c +++ b/print-pgm.c @@ -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: { |