aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/opcua/opcua_application_layer.c
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2007-05-16 08:13:11 +0000
committerUlf Lamping <ulf.lamping@web.de>2007-05-16 08:13:11 +0000
commit872f29e29355ee7bd25648e507d89a6e08d46f0d (patch)
tree599ce83a9c1d8f5b4b9128ed71b1bf291aa6346e /plugins/opcua/opcua_application_layer.c
parent2c0a60004644841332c6d844e44dd40cb64b4e46 (diff)
from Gerhard Gappmeier (ULFL: only slightly changed the unused prevention):
I updated the files for the build process to fit the current wireshark version. I don't know much about it so a just copied the missing parts from another module. I'm not sure of it's right, so please have a look at it. Modifications: * added plugin.rc.in * added moduleinfo.nmake * updated Makefile.am/nmake/common * removed unused variable from opcua_application_layer.c * fixed unused parameter warning in opcua.c I tested it on Windows with VC6 and on Gentoo linux with gcc 3.4.6. svn path=/trunk/; revision=21802
Diffstat (limited to 'plugins/opcua/opcua_application_layer.c')
-rw-r--r--plugins/opcua/opcua_application_layer.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/opcua/opcua_application_layer.c b/plugins/opcua/opcua_application_layer.c
index 0626cfb517..4f68cccded 100644
--- a/plugins/opcua/opcua_application_layer.c
+++ b/plugins/opcua/opcua_application_layer.c
@@ -75,7 +75,7 @@ void registerApplicationLayerTypes(int proto)
int parseServiceNodeId(proto_tree *tree, tvbuff_t *tvb, gint *pOffset, char *szFieldName)
{
gint iOffset = *pOffset;
- guint8 EncodingMask, NSId = 0;
+ guint8 EncodingMask;
guint32 Numeric = 0;
szFieldName = 0; /* avoid warning */
@@ -92,7 +92,6 @@ int parseServiceNodeId(proto_tree *tree, tvbuff_t *tvb, gint *pOffset, char *szF
iOffset+=1;
break;
case 0x01: /* four byte node id */
- NSId = tvb_get_guint8(tvb, iOffset);
proto_tree_add_item(tree, hf_opcua_app_nsid, tvb, iOffset, 1, TRUE);
iOffset+=1;
Numeric = tvb_get_letohs(tvb, iOffset);
@@ -100,7 +99,6 @@ int parseServiceNodeId(proto_tree *tree, tvbuff_t *tvb, gint *pOffset, char *szF
iOffset+=2;
break;
case 0x02: /* numeric, that does not fit into four bytes */
- NSId = tvb_get_letohl(tvb, iOffset);
proto_tree_add_item(tree, hf_opcua_app_nsid, tvb, iOffset, 4, TRUE);
iOffset+=4;
Numeric = tvb_get_letohl(tvb, iOffset);
@@ -120,3 +118,4 @@ int parseServiceNodeId(proto_tree *tree, tvbuff_t *tvb, gint *pOffset, char *szF
return Numeric;
}
+