summaryrefslogtreecommitdiff
path: root/epan/ftypes/ftype-double.c
diff options
context:
space:
mode:
authorMartin Kaiser <wireshark@kaiser.cx>2017-03-15 09:37:03 +0100
committerMichael Mann <mmann78@netscape.net>2017-03-15 11:24:10 +0000
commitb8ede14d44b4fb165787a000bc3f6962f285d23b (patch)
treea117330751be3b5758da65fe2c5bc338fbbbf736 /epan/ftypes/ftype-double.c
parentf190a92bc257f383d7821094aa594d95eaedac0e (diff)
downloadwireshark-b8ede14d44b4fb165787a000bc3f6962f285d23b.tar.gz
ftypes: move set_value_floating into the union
Delete set_value_floating from struct _ftype_t, make it part of the set_value union. Change-Id: Ic00e1c70488ddc4422c34657c62af7dc07db02d9 Reviewed-on: https://code.wireshark.org/review/20556 Reviewed-by: Martin Kaiser <wireshark@kaiser.cx> Petri-Dish: Martin Kaiser <wireshark@kaiser.cx> Reviewed-by: Peter Wu <peter@lekensteyn.nl> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/ftypes/ftype-double.c')
-rw-r--r--epan/ftypes/ftype-double.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/epan/ftypes/ftype-double.c b/epan/ftypes/ftype-double.c
index 5891eabd7b..28216fb8f1 100644
--- a/epan/ftypes/ftype-double.c
+++ b/epan/ftypes/ftype-double.c
@@ -170,9 +170,7 @@ ftype_register_double(void)
float_val_to_repr, /* val_to_string_repr */
float_val_repr_len, /* len_string_repr */
- { NULL }, /* union set_value */
-
- double_fvalue_set_floating, /* set_value_floating */
+ { .set_value_floating = double_fvalue_set_floating }, /* union set_value */
NULL, /* get_value */
NULL, /* get_value_uinteger */
@@ -207,9 +205,7 @@ ftype_register_double(void)
double_val_to_repr, /* val_to_string_repr */
double_val_repr_len, /* len_string_repr */
- { NULL }, /* union set_value */
-
- double_fvalue_set_floating, /* set_value_floating */
+ { .set_value_floating = double_fvalue_set_floating }, /* union set_value */
NULL, /* get_value */
NULL, /* get_value_uinteger */