]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FSBUILD-221 fix several trivial warnings
authorJeff Lenk <jeff@jefflenk.com>
Wed, 23 Dec 2009 03:44:42 +0000 (03:44 +0000)
committerJeff Lenk <jeff@jefflenk.com>
Wed, 23 Dec 2009 03:44:42 +0000 (03:44 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16041 d0543943-73ff-0310-b7d9-9358b9ac24b2

libs/xmlrpc-c/src/xmlrpc_server_abyss.c
src/mod/applications/mod_limit/mod_limit.c
src/mod/applications/mod_vmd/mod_vmd.c
src/mod/endpoints/mod_dingaling/mod_dingaling.c

index 13c70e358b4f5bd1f2347ba3d79b4b3f95efa81e..7cb1ae118b015fa349b36897d20a0cab5b869017 100644 (file)
@@ -891,7 +891,7 @@ createServerBare(xmlrpc_env *                      const envP,
 -----------------------------------------------------------------------------*/
     bool socketBound;
     unsigned int portNumber = 0;
-    TOsSocket socketFd = NULL;
+    TOsSocket socketFd = 0;
     const char * logFileName;
 
     extractServerCreateParms(envP, parmsP, parmSize,
index 58849499237cd4ca6466c4d2b8a756baffd7e573..93b19b765cd3bd38d08c2c505a01f9afe985aaa3 100644 (file)
@@ -181,7 +181,7 @@ static switch_xml_config_item_t config_settings[] = {
 
 static switch_status_t do_config()
 {
-       switch_cache_db_handle_t *dbh;
+       switch_cache_db_handle_t *dbh = NULL;
        switch_status_t status = SWITCH_STATUS_SUCCESS;
        char *sql = NULL;
        
index 7580ab132ac0e6ad3188e4a37a2fa185498ac52a..6a9559d527958a64c85542aa1962f8ad923ae6f2 100644 (file)
@@ -314,7 +314,7 @@ static void find_beep(vmd_session_info_t * vmd_info, switch_frame_t * frame)
 
         if (c < (POINTS - MAX_CHIRP)) {
             vmd_info->state = BEEP_NOT_DETECTED;
-            if (vmd_info->timestamp < vmd_info->minTime) {
+            if (vmd_info->timestamp < (switch_size_t)vmd_info->minTime) {
                 break;
             }
 
index 01946c77a556fb8a6de36e784e29921c5f0c4d83..3dafaf06b1da9680a7e41f059d15eb509ddfb391 100644 (file)
@@ -2309,7 +2309,7 @@ static switch_bool_t match_profile(mdl_profile_t *profile, mdl_profile_t *new_pr
         (new_profile->context && profile->context && !strcasecmp(new_profile->context, profile->context))) &&
        (new_profile->user_flags == profile->user_flags) && (new_profile->acl_count == profile->acl_count)
        ) {
-               int i;
+               uint32_t i;
                if (switch_odbc_available()) {
                        if (!(
                        ((!new_profile->odbc_dsn && !profile->odbc_dsn) ||