Skip to content

Commit 771eb23

Browse files
committed
misc: ngx_http_lua_util.h: removed 'ngx_str_set' definition as it is defined in NGINX 1.6.0+
NGINX 1.6.0+ (the minimum NGINX core version supported as of this commit) already defines it.
1 parent d1e5539 commit 771eb23

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/ngx_http_lua_util.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,6 @@
8585
ngx_http_lua_hash_str((u_char *) s, sizeof(s) - 1)
8686

8787

88-
#ifndef ngx_str_set
89-
# define ngx_str_set(str, text) \
90-
(str)->len = sizeof(text) - 1; (str)->data = (u_char *) text
91-
#endif
92-
93-
9488
typedef struct {
9589
ngx_http_lua_ffi_str_t key;
9690
ngx_http_lua_ffi_str_t value;

0 commit comments

Comments
 (0)