FSBUILD-221 fix several trivial warnings

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16041 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Jeff Lenk 2009-12-23 03:44:42 +00:00
parent 96abcd5efd
commit dc5d69c104
4 changed files with 4 additions and 4 deletions

View 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,

View 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;

View 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;
}

View 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) ||