aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ncp.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2013-03-19 19:28:57 +0000
committerAnders Broman <anders.broman@ericsson.com>2013-03-19 19:28:57 +0000
commit3eb06be97d520daef0bad19bf9c261b01abdc66d (patch)
tree521ce26d4bc68c8e4158df7aa2af769ba60e93b9 /epan/dissectors/packet-ncp.c
parent089dfcd1085ac242322b8e90845ad9913ac7fcd3 (diff)
From beroset:
remove C++ incompatibilities https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8416 svn path=/trunk/; revision=48425
Diffstat (limited to 'epan/dissectors/packet-ncp.c')
-rw-r--r--epan/dissectors/packet-ncp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-ncp.c b/epan/dissectors/packet-ncp.c
index f40917e7fa..0c822940a1 100644
--- a/epan/dissectors/packet-ncp.c
+++ b/epan/dissectors/packet-ncp.c
@@ -263,12 +263,12 @@ mncp_hash_insert(conversation_t *conversation, guint32 nwconnection, guint8 nwta
/* Now remember the request, so we can find it if we later
a reply to it. Track by conversation, connection, and task number.
in NetWare these values determine each unique session */
- key = se_alloc(sizeof(mncp_rhash_key));
+ key = se_new(mncp_rhash_key);
key->conversation = conversation;
key->nwconnection = nwconnection;
key->nwtask = nwtask;
- value = se_alloc(sizeof(mncp_rhash_value));
+ value = se_new(mncp_rhash_value);
g_hash_table_insert(mncp_rhash, key, value);
@@ -290,7 +290,7 @@ mncp_hash_lookup(conversation_t *conversation, guint32 nwconnection, guint8 nwta
key.nwconnection = nwconnection;
key.nwtask = nwtask;
- return g_hash_table_lookup(mncp_rhash, &key);
+ return (mncp_rhash_value *)g_hash_table_lookup(mncp_rhash, &key);
}
/*