blob: 51943021b74397f882b5ca87d7c8d3c234709c2e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#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;
}
|