aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-dcerpc-nt.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2010-03-19 01:33:12 +0000
committerGuy Harris <guy@alum.mit.edu>2010-03-19 01:33:12 +0000
commitd6aaf3369b28583cf8d28eed3199bf0ef42205ff (patch)
tree7db225815d7db9d4e54f78db6c066ba4f487321b /epan/dissectors/packet-dcerpc-nt.h
parent56bd4cd88e4b4dbfad7e4f788ad5f9fb819a5904 (diff)
Squelch some compiler warnings.
Use "#if 0"/#endif rather than commenting out some code; that also means we don't have to use "/ *" and "* /" in the #if'ed-out code, so don't. Clean up indentation. svn path=/trunk/; revision=32239
Diffstat (limited to 'epan/dissectors/packet-dcerpc-nt.h')
-rw-r--r--epan/dissectors/packet-dcerpc-nt.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/epan/dissectors/packet-dcerpc-nt.h b/epan/dissectors/packet-dcerpc-nt.h
index 8b48b27d90..d374933a3e 100644
--- a/epan/dissectors/packet-dcerpc-nt.h
+++ b/epan/dissectors/packet-dcerpc-nt.h
@@ -35,7 +35,7 @@ extern const value_string platform_id_vals[];
#define ALIGN_TO_8_BYTES \
{ dcerpc_info *xzdi; \
- xzdi=pinfo->private_data; \
+ xzdi=(dcerpc_info *)pinfo->private_data; \
if(!xzdi->conformant_run) { \
if(offset&0x07) { \
offset=(offset&0xfffffff8)+8; \
@@ -44,7 +44,7 @@ extern const value_string platform_id_vals[];
}
#define ALIGN_TO_4_BYTES \
{ dcerpc_info *xzdi; \
- xzdi=pinfo->private_data; \
+ xzdi=(dcerpc_info *)pinfo->private_data; \
if(!xzdi->conformant_run) { \
if(offset&0x03) { \
offset=(offset&0xfffffffc)+4; \
@@ -53,7 +53,7 @@ extern const value_string platform_id_vals[];
}
#define ALIGN_TO_2_BYTES \
{ dcerpc_info *xzdi; \
- xzdi=pinfo->private_data; \
+ xzdi=(dcerpc_info *)pinfo->private_data; \
if(!xzdi->conformant_run) { \
if(offset&0x01) { \
offset=(offset&0xfffffffe)+2; \
@@ -65,7 +65,7 @@ extern const value_string platform_id_vals[];
#define ALIGN_TO_4_OR_8_BYTES \
{ dcerpc_info *xzdi2; \
- xzdi2=pinfo->private_data; \
+ xzdi2=(dcerpc_info *)pinfo->private_data; \
if (xzdi2->call_data->flags & DCERPC_IS_NDR64) { \
ALIGN_TO_8_BYTES; \
} else { \
@@ -77,7 +77,7 @@ extern const value_string platform_id_vals[];
#define ALIGN_TO_2_OR_4_BYTES \
{ dcerpc_info *xzdi2; \
- xzdi2=pinfo->private_data; \
+ xzdi2=(dcerpc_info *)pinfo->private_data; \
if (xzdi2->call_data->flags & DCERPC_IS_NDR64) { \
ALIGN_TO_4_BYTES; \
} else { \