diff options
author | Anders Broman <anders.broman@ericsson.com> | 2011-11-19 16:15:07 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2011-11-19 16:15:07 +0000 |
commit | 3d13938fa4574b1782c49ffb37db13962bc0b0d9 (patch) | |
tree | ca5b4933ef922af7af5cba801c12436db1e98bfd /epan/dissectors/packet-rdp.c | |
parent | b431591727807e3d8b20ce059dc213d82b215630 (diff) |
See if this fixes "warning: initializer element is not computable at load time"
svn path=/trunk/; revision=39946
Diffstat (limited to 'epan/dissectors/packet-rdp.c')
-rw-r--r-- | epan/dissectors/packet-rdp.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/epan/dissectors/packet-rdp.c b/epan/dissectors/packet-rdp.c index 1d68fa1252..fde231f318 100644 --- a/epan/dissectors/packet-rdp.c +++ b/epan/dissectors/packet-rdp.c @@ -855,14 +855,15 @@ dissect_rdp_fields(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tr return offset; } -static int -dissect_rdp_nyi(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, const char *info) -{ - rdp_field_info_t nyi_fields[] = { +static rdp_field_info_t nyi_fields[] = { {hf_rdp_notYetImplemented, 2, NULL, 0, 0, NULL }, FI_TERMINATOR }; +static int +dissect_rdp_nyi(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, const char *info) +{ + nyi_fields[0].fixedLength = tvb_length_remaining(tvb, offset); offset = dissect_rdp_fields(tvb, offset, pinfo, tree, nyi_fields); |