aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_string.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-04-02 06:27:30 +0000
committerIgor Sysoev <igor@sysoev.ru>2007-04-02 06:27:30 +0000
commit7a5886052f061e4ad5edbd20e1dac6118cc3cdab (patch)
tree72a46e5c4268929dd4c8ccf1211e3adf2a8f87e9 /src/core/ngx_string.h
parent10b9894beeac2fc9d88283ad1140be3b8cf4543d (diff)
downloadnginx-7a5886052f061e4ad5edbd20e1dac6118cc3cdab.tar.gz
nginx-7a5886052f061e4ad5edbd20e1dac6118cc3cdab.zip
*) introduce ngx_strchr()
*) test server_name for '/': it's common configuration error when trailing ';' is omitted and a next directive is treated as server_name
Diffstat (limited to 'src/core/ngx_string.h')
-rw-r--r--src/core/ngx_string.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/ngx_string.h b/src/core/ngx_string.h
index 15650009c..db7857a36 100644
--- a/src/core/ngx_string.h
+++ b/src/core/ngx_string.h
@@ -40,6 +40,7 @@ typedef struct {
#define ngx_strstr(s1, s2) strstr((const char *) s1, (const char *) s2)
+#define ngx_strchr(s1, c) strchr((const char *) s1, (int) c)
#define ngx_strlen(s) strlen((const char *) s)