mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-13 07:45:26 +00:00
FS-11093 #resolve switch_true should return switch_bool_t
This commit is contained in:
parent
d48db7c979
commit
a0fd0a1b44
@ -495,7 +495,7 @@ SWITCH_DECLARE(char *) switch_find_parameter(const char *str, const char *param,
|
||||
\param expr a string expression
|
||||
\return true or false
|
||||
*/
|
||||
static inline int switch_true(const char *expr)
|
||||
static inline switch_bool_t switch_true(const char *expr)
|
||||
{
|
||||
return ((expr && ( !strcasecmp(expr, "yes") ||
|
||||
!strcasecmp(expr, "on") ||
|
||||
|
Loading…
x
Reference in New Issue
Block a user