Mercurial > hg > nginx
comparison src/core/ngx_conf_file.c @ 1107:db7c468c447d
ngx_strcasecmp()/ngx_strncasecmp()
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 14 Feb 2007 18:51:19 +0000 |
parents | c4f666fc3a7e |
children | 3728476ab96d |
comparison
equal
deleted
inserted
replaced
1106:2c7fed12fab7 | 1107:db7c468c447d |
---|---|
881 return "is duplicate"; | 881 return "is duplicate"; |
882 } | 882 } |
883 | 883 |
884 value = cf->args->elts; | 884 value = cf->args->elts; |
885 | 885 |
886 if (ngx_strcasecmp(value[1].data, "on") == 0) { | 886 if (ngx_strcasecmp(value[1].data, (u_char *) "on") == 0) { |
887 *fp = 1; | 887 *fp = 1; |
888 | 888 |
889 } else if (ngx_strcasecmp(value[1].data, "off") == 0) { | 889 } else if (ngx_strcasecmp(value[1].data, (u_char *) "off") == 0) { |
890 *fp = 0; | 890 *fp = 0; |
891 | 891 |
892 } else { | 892 } else { |
893 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, | 893 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, |
894 "invalid value \"%s\" in \"%s\" directive, " | 894 "invalid value \"%s\" in \"%s\" directive, " |