]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-11093 #resolve switch_true should return switch_bool_t
authorSeven Du <dujinfang@x-y-t.cn>
Fri, 13 Apr 2018 01:45:57 +0000 (09:45 +0800)
committerMuteesa Fred <muteesafred@hotmail.com>
Tue, 24 Jul 2018 07:21:50 +0000 (07:21 +0000)
src/include/switch_utils.h

index 2bf3de880eb79025bbdd09e231b6fd108837f514..dd5adcbd896367a2e5723cf9df5ab5a94ab2900d 100644 (file)
@@ -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") ||