]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix build, remove nag message to stderr when in -nc
authorMichael Jerris <mike@jerris.com>
Thu, 6 Dec 2007 13:50:14 +0000 (13:50 +0000)
committerMichael Jerris <mike@jerris.com>
Thu, 6 Dec 2007 13:50:14 +0000 (13:50 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6536 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/loggers/mod_console/mod_console.c
src/mod/loggers/mod_logfile/mod_logfile.c

index 8320a1e16355d4e40a362a0750782abb1eff688c..d0a35fbeb4c307f278aee45f13af49c77b8a791e 100644 (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;
index 0e5e6d3f30639a6353531c2af835f54b6a1402ee..a769136aaed745df4eee934472cf65e51c80f4dc 100644 (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;