]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Fixes for things picked up by clang compilation
authorSteve Underwood <steveu@coppice.org>
Mon, 24 Feb 2014 04:50:41 +0000 (12:50 +0800)
committerSteve Underwood <steveu@coppice.org>
Mon, 24 Feb 2014 04:50:41 +0000 (12:50 +0800)
libs/spandsp/src/sig_tone.c
libs/spandsp/src/spandsp/private/t31.h
libs/spandsp/src/spandsp/v17rx.h
libs/spandsp/src/v17rx.c

index e40d39ac371091bd8f408ee6d4a71fe40af3bd47..1b30d8e583cce8bb6f9d0dfc7e5f31b1f8a05ddf 100644 (file)
@@ -154,9 +154,15 @@ static const sig_tone_descriptor_t sig_tones[3] =
         },
         &flat_coeffs[NOTCH_COEFF_SET_2280HZ],
 
+#if defined(SPANDSP_USE_FIXED_POINT)
+        13,
+        -30,
+        -30
+#else
         13.0f,
         -30.0f,
         -30.0f
+#endif
     },
     {
         /* 2600Hz (e.g. many US protocols) */
@@ -176,9 +182,15 @@ static const sig_tone_descriptor_t sig_tones[3] =
         },
         NULL,
 
+#if defined(SPANDSP_USE_FIXED_POINT)
+        16,
+        -30,
+        -30
+#else
         15.6f,
         -30.0f,
         -30.0f
+#endif
     },
     {
         /* 2400Hz/2600Hz (e.g. SS5 and SS5bis) */
@@ -198,9 +210,15 @@ static const sig_tone_descriptor_t sig_tones[3] =
         },
         NULL,
 
+#if defined(SPANDSP_USE_FIXED_POINT)
+        16,
+        -30,
+        -30
+#else
         15.6f,
         -30.0f,
         -30.0f
+#endif
     }
 };
 
index 1f7de41f996b0101f7812f235af858ba55f391a1..2bfed82d0bfb98de281aec1b2b5ddd47fb706ff6 100644 (file)
@@ -140,7 +140,7 @@ typedef struct
 
     /*! \brief True if we are using ECM mode. This is used to select HDLC faking, necessary
                with clunky class 1 modems. */
-    bool ecm_mode;
+    int ecm_mode;
 
     /*! \brief Counter for trailing non-ECM bytes, used to flush out the far end's modem. */
     int non_ecm_trailer_bytes;
index 74c4b1dd8ef19fbac89e13a7be99daa1b9d9ac7f..d99674ddd591d7fb81e335730a4aaf98e30ac9f2 100644 (file)
@@ -241,7 +241,7 @@ SPAN_DECLARE(v17_rx_state_t *) v17_rx_init(v17_rx_state_t *s, int bit_rate, put_
     \param bit_rate The bit rate of the modem. Valid values are 7200, 9600, 12000 and 14400.
     \param short_train True if a short training sequence is expected.
     \return 0 for OK, -1 for bad parameter */
-SPAN_DECLARE(int) v17_rx_restart(v17_rx_state_t *s, int bit_rate, bool short_train);
+SPAN_DECLARE(int) v17_rx_restart(v17_rx_state_t *s, int bit_rate, int short_train);
 
 /*! Release a V.17 modem receive context.
     \brief Release a V.17 modem receive context.
index 85d72d0ed626c780839f8126653cb8abd9908937..4b61af1409c63a57e61f8ac82165b06f66f0368f 100644 (file)
@@ -1392,7 +1392,7 @@ SPAN_DECLARE(logging_state_t *) v17_rx_get_logging_state(v17_rx_state_t *s)
 }
 /*- End of function --------------------------------------------------------*/
 
-SPAN_DECLARE(int) v17_rx_restart(v17_rx_state_t *s, int bit_rate, bool short_train)
+SPAN_DECLARE(int) v17_rx_restart(v17_rx_state_t *s, int bit_rate, int short_train)
 {
     int i;