Mercurial > hg > nginx
comparison src/core/ngx_config_command.c @ 10:4f3879d9b6f6
nginx-0.0.1-2002-09-11-19:18:33 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 11 Sep 2002 15:18:33 +0000 |
parents | |
children | 2aba961a1d34 |
comparison
equal
deleted
inserted
replaced
9:6f58641241bb | 10:4f3879d9b6f6 |
---|---|
1 | |
2 #include <ngx_config.h> | |
3 | |
4 char *ngx_conf_set_size_slot(char *conf, int offset, char *value) | |
5 { | |
6 int size; | |
7 | |
8 size = atoi(value); | |
9 if (size < 0) | |
10 return "value must be greater or equal to zero"; | |
11 | |
12 *(int *) (conf + offset) = size; | |
13 return NULL; | |
14 } |