use switch_true instead

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10304 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Andrew Thompson 2008-11-08 02:20:03 +00:00
parent 69b7d6546c
commit 8c15644255

View File

@ -1070,8 +1070,8 @@ static int config(void)
set_pref_cookie(val);
} else if (!strcmp(var, "nodename")) {
set_pref_nodename(val);
} else if (!strcmp(var, "shortname") && strcmp(val, "yes") && strcmp(val, "true")) {
prefs.shortname = SWITCH_FALSE;
} else if (!strcmp(var, "shortname")) {
prefs.shortname = switch_true(val);
} else if (!strcasecmp(var, "apply-inbound-acl")) {
if (prefs.acl_count < MAX_ACL) {
prefs.acl[prefs.acl_count++] = strdup(val);