29 Aug
2007
29 Aug
'07
8:38 p.m.
Author: mikej Date: Wed Aug 29 16:38:00 2007 New Revision: 5678 Modified: freeswitch/trunk/src/switch_console.c Log: silence picky compiler. Modified: freeswitch/trunk/src/switch_console.c ============================================================================== --- freeswitch/trunk/src/switch_console.c (original) +++ freeswitch/trunk/src/switch_console.c Wed Aug 29 16:38:00 2007 @@ -183,7 +183,7 @@ static char prompt_str[512] = ""; char * prompt(EditLine *e) { - if (switch_strlen_zero(prompt_str)) { + if (*prompt_str == '\0') { gethostname(hostname, sizeof(hostname)); snprintf(prompt_str, sizeof(prompt_str), "freeswitch@%s> ", hostname); }