Skip to content

Commit 2842ecd

Browse files
committed
added guard macros for the C headers in github pull request #10.
1 parent c193183 commit 2842ecd

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

src/ngx_http_set_random.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1+
#ifndef NGX_SET_RANDOM_H
2+
#define NGX_SET_RANDOM_H
3+
14
#include <ngx_core.h>
25
#include <ngx_config.h>
36
#include <ngx_http.h>
47

58
ngx_int_t ngx_http_set_misc_set_random(ngx_http_request_t *r,
69
ngx_str_t *res, ngx_http_variable_value_t *v);
710

11+
#endif /* NGX_SET_RANDOM_H */
12+

src/ngx_http_set_secure_random.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
1+
#ifndef NGX_SET_SECURE_RANDOM_H
2+
#define NGX_SET_SECURE_RANDOM_H
3+
14
#include <ngx_core.h>
25
#include <ngx_config.h>
36
#include <ngx_http.h>
47

58
ngx_int_t ngx_http_set_misc_set_secure_random_alphanum(ngx_http_request_t *r,
69
ngx_str_t *res, ngx_http_variable_value_t *v);
7-
10+
811
ngx_int_t ngx_http_set_misc_set_secure_random_lcalpha(ngx_http_request_t *r,
912
ngx_str_t *res, ngx_http_variable_value_t *v);
13+
14+
#endif /* NGX_SET_SECURE_RANDOM_H */
15+

0 commit comments

Comments
 (0)