]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix msvc release mode build errors
authorMichael Jerris <mike@jerris.com>
Fri, 20 Feb 2009 20:49:59 +0000 (20:49 +0000)
committerMichael Jerris <mike@jerris.com>
Fri, 20 Feb 2009 20:49:59 +0000 (20:49 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12199 d0543943-73ff-0310-b7d9-9358b9ac24b2

libs/spandsp/src/fax_modems.c
libs/spandsp/src/t4.c

index b919f7565467589a59f121fa05a623a563a98335..c271b34f8c0c40e90ba8951023543f4ee6a8ef6f 100644 (file)
@@ -87,7 +87,7 @@
 
 #define HDLC_FRAMING_OK_THRESHOLD               5
 
-int fax_modems_v17_v21_rx(void *user_data, const int16_t amp[], int len)
+SPAN_DECLARE(int) fax_modems_v17_v21_rx(void *user_data, const int16_t amp[], int len)
 {
     fax_modems_state_t *s;
 
@@ -106,7 +106,7 @@ int fax_modems_v17_v21_rx(void *user_data, const int16_t amp[], int len)
 }
 /*- End of function --------------------------------------------------------*/
 
-int fax_modems_v27ter_v21_rx(void *user_data, const int16_t amp[], int len)
+SPAN_DECLARE(int) fax_modems_v27ter_v21_rx(void *user_data, const int16_t amp[], int len)
 {
     fax_modems_state_t *s;
 
@@ -125,7 +125,7 @@ int fax_modems_v27ter_v21_rx(void *user_data, const int16_t amp[], int len)
 }
 /*- End of function --------------------------------------------------------*/
 
-int fax_modems_v29_v21_rx(void *user_data, const int16_t amp[], int len)
+SPAN_DECLARE(int) fax_modems_v29_v21_rx(void *user_data, const int16_t amp[], int len)
 {
     fax_modems_state_t *s;
 
index 381be75b6890be47a00ded865b3d5e3c936223dd..549d2c74a22c6c26a4071e66872a7bf4b7206fcb 100644 (file)
@@ -410,7 +410,7 @@ static int test_tiff_directory_info(t4_state_t *s)
         return -1;
     parm = 0;
     TIFFGetField(t->tiff_file, TIFFTAG_IMAGEWIDTH, &parm);
-    if (s->image_width != parm)
+    if (s->image_width != (int)parm)
     {
 printf("Width changed\n");
         return 1;
@@ -1959,7 +1959,7 @@ SPAN_DECLARE(t4_state_t *) t4_tx_init(t4_state_t *s, const char *file, int start
     s->stop_page = (stop_page >= 0)  ?  stop_page : INT_MAX;
 
     if (!TIFFSetDirectory(s->tiff.tiff_file, (tdir_t) s->current_page))
-        return -1;
+        return NULL;
     if (get_tiff_directory_info(s))
     {
         close_tiff_input_file(s);