summaryrefslogtreecommitdiff
path: root/dccp.h
diff options
context:
space:
mode:
authorguy <guy>2005-12-05 21:36:24 +0000
committerguy <guy>2005-12-05 21:36:24 +0000
commit5667a87a62e984d2e5b97ee55ba2386d96533493 (patch)
tree6e4444f7a893dd1fd49d6cbb57f066d9e83a746f /dccp.h
parent8a871af07f5b0bd7602020eea872c259cb2abcd6 (diff)
downloadtcpdump-5667a87a62e984d2e5b97ee55ba2386d96533493.tar.gz
From Gisle Vanem: don't use GCC features such as the ability to declare
variables in the middle of the block., and #if out dccp_hdr_data() (which is unused, and defined in such a fashion that it doesn't work on MSVC++, with the structure name and the function name the same).
Diffstat (limited to 'dccp.h')
-rw-r--r--dccp.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/dccp.h b/dccp.h
index 2f35e9c6..ddc2d1d3 100644
--- a/dccp.h
+++ b/dccp.h
@@ -1,4 +1,4 @@
-/* @(#) $Header: /tcpdump/master/tcpdump/dccp.h,v 1.2 2005-09-20 06:25:19 guy Exp $ (LBL) */
+/* @(#) $Header: /tcpdump/master/tcpdump/dccp.h,v 1.3 2005-12-05 21:36:24 guy Exp $ (LBL) */
/*
* Copyright (C) Arnaldo Carvalho de Melo 2004
* Copyright (C) Ian McDonald 2005 <iam4@cs.waikato.ac.nz>
@@ -86,12 +86,14 @@ struct dccp_hdr_response {
u_int32_t dccph_resp_service;
};
+#if 0
static inline struct dccp_hdr_data *dccp_hdr_data(struct dccp_hdr *hdrg)
{
const int ext = DCCPH_X(hdrg) ? sizeof(struct dccp_hdr_ext) : 0;
return (struct dccp_hdr_data *)(((u_char *)hdrg) + sizeof(hdrg) + ext);
}
+#endif
/**
* struct dccp_hdr_reset - Unconditionally shut down a connection