fix some warnings

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4641 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2007-03-18 16:40:01 +00:00
parent d0410103ff
commit e42d7ec1c9
5 changed files with 9 additions and 4 deletions

View File

@ -63,8 +63,8 @@ static inline char *print_bits(switch_byte_t byte, char *x)
\{
*/
static const int8_t SWITCH_BITPACKED_MASKS[] = {0, 1, 3, 7, 15, 31, 63, 127, 255};
static const int8_t SWITCH_REVERSE_BITPACKED_MASKS[] = {255, 254, 252, 248, 240, 224, 192, 128};
static const uint8_t SWITCH_BITPACKED_MASKS[] = {0, 1, 3, 7, 15, 31, 63, 127, 255};
static const uint8_t SWITCH_REVERSE_BITPACKED_MASKS[] = {255, 254, 252, 248, 240, 224, 192, 128};
/*!
\brief Initialize a bitpack object

View File

@ -7,6 +7,9 @@
*/
#undef HAVE_DIRENT_H
/* Define to 1 if you have the <dlfcn.h> header file. */
#undef HAVE_DLFCN_H
/* Define to 1 if you have the `gethostname' function. */
#undef HAVE_GETHOSTNAME

View File

@ -522,7 +522,7 @@ static switch_status_t conference_add_member(conference_obj_t *conference, confe
if (conference->alone_sound) {
conference_play_file(conference, conference->alone_sound, CONF_DEFAULT_LEADIN, switch_core_session_get_channel(member->session), 0);
} else {
snprintf(msg, sizeof(msg), "You are currently the only person in this conference.", conference->count);
snprintf(msg, sizeof(msg), "You are currently the only person in this conference.");
conference_member_say(member, msg, CONF_DEFAULT_LEADIN);
}
}

View File

@ -62,10 +62,12 @@ static void etpan_destroy(JSContext *cx, JSObject *obj)
{
}
#if 0
static JSBool etpan_my_method(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
{
return JS_FALSE;
}
#endif
enum etpan_tinyid {
etpan_NAME

View File

@ -77,7 +77,7 @@ static switch_xml_t xml_url_fetch(const char *section,
return NULL;
}
if (file_url = strstr(binding->url, "file:")) {
if ((file_url = strstr(binding->url, "file:"))) {
file_url += 5;
if (!(xml = switch_xml_parse_file(file_url))) {