]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix some warnings.
authorMichael Jerris <mike@jerris.com>
Sun, 8 Apr 2007 16:11:03 +0000 (16:11 +0000)
committerMichael Jerris <mike@jerris.com>
Sun, 8 Apr 2007 16:11:03 +0000 (16:11 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4891 d0543943-73ff-0310-b7d9-9358b9ac24b2

libs/libsndfile/Makefile.am
src/include/switch.h
src/switch_apr.c
src/switch_ivr_bridge.c
src/switch_ivr_play_say.c

index bae93e10d4206a5926312b460e288ca6e8989e36..e59ce36e90a66951329681d4695bde091481cf53 100644 (file)
@@ -1,10 +1,11 @@
-## Process this file with automake to produce Makefile.in
+# Process this file with automake to produce Makefile.in
 
-SUBDIRS = man doc Win32 Octave src examples regtest tests
+SUBDIRS = Win32 Octave src
+# man doc Win32 examples regtest tests
 DIST_SUBDIRS = $(SUBDIRS)
 EXTRA_DIST = reconfigure.mk acinclude.m4 libsndfile.spec.in \
                        sndfile.pc.in Mingw-make-dist.sh
-                       
+
                         
 pkgconfigdir = $(libdir)/pkgconfig
 pkgconfig_DATA = sndfile.pc
index a7cef117f334719ee3814482f8bd1563af5b80f0..84019a77e5e4461b70befd3c86fe978b87696f69 100644 (file)
@@ -50,8 +50,7 @@
 #define FREESWITCH_PEN "27880"
 #define FREESWITCH_OID_PREFIX ".1.3.6.1.4.1." FREESWITCH_PEN
 #define FREESWITCH_ITAD "543"
-
-
+#define __EXTENSIONS__ 1
 #include <stdlib.h>
 #include <stdio.h>
 #include <stdarg.h>
@@ -60,7 +59,7 @@
 #include <setjmp.h>
 #include <ctype.h>
 #include <fcntl.h>
-#include <string.h>
+#include <strings.h>
 #include <sys/stat.h>
 #include <limits.h>
 #include <sys/types.h>
index de82ab8e5e39c232c781bd294e5e5a152f6a02bf..7a25a9a3271a52289582809593d043647f27fdc5 100644 (file)
@@ -381,7 +381,7 @@ SWITCH_DECLARE(switch_status_t) switch_socket_create(switch_socket_t ** new_sock
 
 SWITCH_DECLARE(switch_status_t) switch_socket_shutdown(switch_socket_t * sock, switch_shutdown_how_e how)
 {
-       return apr_socket_shutdown(sock, how);
+       return apr_socket_shutdown(sock, (apr_shutdown_how_e)how);
 }
 
 SWITCH_DECLARE(switch_status_t) switch_socket_close(switch_socket_t * sock)
index 47279353b9a09ba7adef5c4bdadd60d1fd1f1bf2..6c7bf5b3482682ec9efbfbcbccc8179b408d3e40 100644 (file)
@@ -31,7 +31,6 @@
 #include <switch.h>
 
 static const switch_state_handler_table_t audio_bridge_peer_state_handlers;
-static const switch_state_handler_table_t originate_state_handlers;
 
 /* Bridge Related Stuff*/
 /*********************************************************************************/
index ba7eb3cc3aa7aad5ac47d028587aa8152ba8ac5a..5d708b2380646f0d2256d806c0a2c05817690f20 100644 (file)
@@ -77,7 +77,7 @@ static switch_say_method_t get_say_method_by_name(char *name)
        return (switch_say_method_t) x;
 }
 
-static switch_say_method_t get_say_type_by_name(char *name)
+static switch_say_type_t get_say_type_by_name(char *name)
 {
        int x = 0;
        for (x = 0; SAY_TYPE_NAMES[x]; x++) {
@@ -86,7 +86,7 @@ static switch_say_method_t get_say_type_by_name(char *name)
                }
        }
 
-       return (switch_say_method_t) x;
+       return (switch_say_type_t) x;
 }