aboutsummaryrefslogtreecommitdiffstats
path: root/asn1/pres/packet-pres-template.c
diff options
context:
space:
mode:
Diffstat (limited to 'asn1/pres/packet-pres-template.c')
-rw-r--r--asn1/pres/packet-pres-template.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/asn1/pres/packet-pres-template.c b/asn1/pres/packet-pres-template.c
index 5ec32a1fb2..2f1161e043 100644
--- a/asn1/pres/packet-pres-template.c
+++ b/asn1/pres/packet-pres-template.c
@@ -67,7 +67,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;
@@ -111,7 +111,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
@@ -145,9 +145,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 */
@@ -187,9 +187,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);