15 lines
265 B
C
15 lines
265 B
C
|
|
||
|
#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;
|
||
|
}
|