See if this fixes "warning: initializer element is not computable at load time"

svn path=/trunk/; revision=39946
This commit is contained in:
Anders Broman 2011-11-19 16:15:07 +00:00
parent b431591727
commit 3d13938fa4
1 changed files with 5 additions and 4 deletions

View File

@ -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);