]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
remove check for va_list completely in sofia since i don't event think it happens...
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 13 Dec 2010 17:20:12 +0000 (11:20 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 13 Dec 2010 17:20:23 +0000 (11:20 -0600)
src/mod/endpoints/mod_sofia/sofia.c

index e34d7aef9de01ca1b4b138cfd523b1f6d1c88173..591cd7f4aa36baba78f661f959d9286549766a84 100644 (file)
@@ -1717,16 +1717,9 @@ void launch_sofia_profile_thread(sofia_profile_t *profile)
 
 static void logger(void *logarg, char const *fmt, va_list ap)
 {
-       /* gcc 4.4 gets mad at us for testing if (ap) so let's try to work around it....*/
-       void *ap_ptr = (void *) (intptr_t) ap;
-       
        if (!fmt) return;
 
-       if (ap_ptr) {
-               switch_log_vprintf(SWITCH_CHANNEL_LOG_CLEAN, mod_sofia_globals.tracelevel, fmt, ap);
-       } else {
-               switch_log_printf(SWITCH_CHANNEL_LOG_CLEAN, mod_sofia_globals.tracelevel, "%s", fmt);
-       }
+       switch_log_vprintf(SWITCH_CHANNEL_LOG_CLEAN, mod_sofia_globals.tracelevel, fmt, ap);
 }
 
 static su_log_t *sofia_get_logger(const char *name)