aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-pres.c
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2015-09-02 22:53:05 -0400
committerAnders Broman <a.broman58@gmail.com>2015-09-03 06:05:43 +0000
commit2be3820912ecee71f0feb5fcc36fdfa53041908d (patch)
tree9a0ca48cdbe7f70833ac5fcfb663ac70938e91a5 /epan/dissectors/packet-pres.c
parent32e785f81320342058bbee95f84095cd55449c09 (diff)
Address "shadow" warnings found by checkAPI script.
These aren't "true" shadow issues, but the script doesn't completely understand C syntax (for things like struct member names "time" and "index"). But fixing them creates less noise. Change-Id: I5a2db1549095824530428529e86cab453c031a04 Reviewed-on: https://code.wireshark.org/review/10368 Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-pres.c')
-rw-r--r--epan/dissectors/packet-pres.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/epan/dissectors/packet-pres.c b/epan/dissectors/packet-pres.c
index 9af2549f49..03c6b21a76 100644
--- a/epan/dissectors/packet-pres.c
+++ b/epan/dissectors/packet-pres.c
@@ -75,7 +75,7 @@ static guint32 presentation_context_identifier;
typedef struct _pres_ctx_oid_t {
guint32 ctx_id;
char *oid;
- guint32 index;
+ guint32 idx;
} pres_ctx_oid_t;
static GHashTable *pres_ctx_oid_table = NULL;
@@ -243,7 +243,7 @@ pres_ctx_oid_equal(gconstpointer k1, gconstpointer k2)
{
const pres_ctx_oid_t *pco1=(const pres_ctx_oid_t *)k1;
const pres_ctx_oid_t *pco2=(const pres_ctx_oid_t *)k2;
- return (pco1->ctx_id==pco2->ctx_id && pco1->index==pco2->index);
+ return (pco1->ctx_id==pco2->ctx_id && pco1->idx==pco2->idx);
}
static void
@@ -277,9 +277,9 @@ register_ctx_id_and_oid(packet_info *pinfo _U_, guint32 idx, const char *oid)
conversation=find_conversation (pinfo->fd->num, &pinfo->src, &pinfo->dst,
pinfo->ptype, pinfo->srcport, pinfo->destport, 0);
if (conversation) {
- pco->index = conversation->index;
+ pco->idx = conversation->index;
} else {
- pco->index = 0;
+ pco->idx = 0;
}
/* if this ctx already exists, remove the old one first */
@@ -319,9 +319,9 @@ find_oid_by_pres_ctx_id(packet_info *pinfo, guint32 idx)
conversation=find_conversation (pinfo->fd->num, &pinfo->src, &pinfo->dst,
pinfo->ptype, pinfo->srcport, pinfo->destport, 0);
if (conversation) {
- pco.index = conversation->index;
+ pco.idx = conversation->index;
} else {
- pco.index = 0;
+ pco.idx = 0;
}
tmppco=(pres_ctx_oid_t *)g_hash_table_lookup(pres_ctx_oid_table, &pco);