projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7acee32
)
Allow on/off (bug #2233)
author
Mark Spencer
<markster@digium.com>
Sun, 8 Aug 2004 22:22:30 +0000
(22:22 +0000)
committer
Mark Spencer
<markster@digium.com>
Sun, 8 Aug 2004 22:22:30 +0000
(22:22 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3597
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
config.c
patch
|
blob
|
history
diff --git
a/config.c
b/config.c
index
6a4d106
..
a0e2903
100755
(executable)
--- a/
config.c
+++ b/
config.c
@@
-109,7
+109,8
@@
int ast_true(char *s)
!strcasecmp(s, "true") ||
!strcasecmp(s, "y") ||
!strcasecmp(s, "t") ||
- !strcasecmp(s, "1"))
+ !strcasecmp(s, "1") ||
+ !strcasecmp(s, "on"))
return -1;
return 0;
}
@@
-123,7
+124,8
@@
int ast_false(char *s)
!strcasecmp(s, "false") ||
!strcasecmp(s, "n") ||
!strcasecmp(s, "f") ||
- !strcasecmp(s, "0"))
+ !strcasecmp(s, "0") ||
+ !strcasecmp(s, "off"))
return -1;
return 0;
}