diff options
author | guy <guy> | 2005-12-05 21:36:24 +0000 |
---|---|---|
committer | guy <guy> | 2005-12-05 21:36:24 +0000 |
commit | 5667a87a62e984d2e5b97ee55ba2386d96533493 (patch) | |
tree | 6e4444f7a893dd1fd49d6cbb57f066d9e83a746f /dccp.h | |
parent | 8a871af07f5b0bd7602020eea872c259cb2abcd6 (diff) | |
download | tcpdump-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.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |