]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Squelch warnings from MSVC.
authorGuy Harris <[email protected]>
Mon, 29 Jan 2018 10:30:48 +0000 (02:30 -0800)
committerGuy Harris <[email protected]>
Mon, 29 Jan 2018 10:30:48 +0000 (02:30 -0800)
Use float values, rather than double values, to initialize an array of
floats.

print-cfm.c

index 6b34d7b9036efa6c114dd71f3f6884a908ab4b5b..d553b6b71a4a3f20ed22d2b937f4b5f7a62261a2 100644 (file)
@@ -71,7 +71,7 @@ struct cfm_ccm_t {
  * Timer Bases for the CCM Interval field.
  * Expressed in units of seconds.
  */
-static const float ccm_interval_base[8] = {0, 0.003333, 0.01, 0.1, 1, 10, 60, 600};
+static const float ccm_interval_base[8] = {0.0f, 0.003333f, 0.01f, 0.1f, 1.0f, 10.0f, 60.0f, 600.0f};
 #define CCM_INTERVAL_MIN_MULTIPLIER 3.25
 #define CCM_INTERVAL_MAX_MULTIPLIER 3.5