diff src/core/ngx_string.h @ 1157:a4820184a618

*) 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
author Igor Sysoev <igor@sysoev.ru>
date Mon, 02 Apr 2007 06:27:30 +0000
parents db7c468c447d
children 8b3e59a6bfdb
line wrap: on
line diff
--- 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)