Sign in
nginx
/
nginx
/
e0268b95c6dea75f88d3874213b1aa0cd0aba692
/
.
/
src
/
core
/
ngx_config_command.c
blob: 51943021b74397f882b5ca87d7c8d3c234709c2e [
file
] [
log
] [
blame
]
#include
<ngx_config.h>
char
*
ngx_conf_set_size_slot
(
char
*
conf
,
int
offset
,
char
*
value
)
{
int
size
;
size
=
atoi
(
value
);
if
(
size
<
0
)
return
"value must be greater or equal to zero"
;
*(
int
*)
(
conf
+
offset
)
=
size
;
return
NULL
;
}