fix build, remove nag message to stderr when in -nc

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6536 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2007-12-06 13:50:14 +00:00
parent 18ca278d9b
commit 533c46874e
2 changed files with 3 additions and 6 deletions

View File

@ -74,7 +74,7 @@ static void add_mapping(char *var, char *val, int cumlative)
if (cumlative) {
uint32_t l = switch_log_str2level(val);
int i;
uint32_t i;
assert(l < 10);
@ -161,7 +161,7 @@ static switch_status_t switch_console_logger(const switch_log_node_t *node, swit
if ((handle = switch_core_data_channel(SWITCH_CHANNEL_ID_LOG))) {
size_t mask = 0;
int ok = 0;
size_t ok = 0;
ok = switch_log_check_mask(all_level, level);
@ -190,9 +190,6 @@ static switch_status_t switch_console_logger(const switch_log_node_t *node, swit
fprintf(handle, "%s", node->data);
}
}
} else {
fprintf(stderr, "HELP I HAVE NO CONSOLE TO LOG TO!\n");
fflush(stderr);
}
return SWITCH_STATUS_SUCCESS;

View File

@ -214,7 +214,7 @@ static switch_status_t process_node(const switch_log_node_t *node, switch_log_le
for (hi = switch_hash_first(NULL, profile_hash); hi; hi = switch_hash_next(hi)) {
size_t mask = 0;
int ok = 0;
size_t ok = 0;
switch_hash_this(hi, &var, NULL, &val);
profile = val;