Mercurial > hg > nginx
comparison src/core/ngx_config_command.c @ 13:2aba961a1d34
nginx-0.0.1-2002-09-16-19:01:44 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 16 Sep 2002 15:01:44 +0000 |
parents | 4f3879d9b6f6 |
children | d7908993fdeb |
comparison
equal
deleted
inserted
replaced
12:055ed05235ae | 13:2aba961a1d34 |
---|---|
10 return "value must be greater or equal to zero"; | 10 return "value must be greater or equal to zero"; |
11 | 11 |
12 *(int *) (conf + offset) = size; | 12 *(int *) (conf + offset) = size; |
13 return NULL; | 13 return NULL; |
14 } | 14 } |
15 | |
16 char *ngx_conf_set_time_slot(char *conf, int offset, char *value) | |
17 { | |
18 int size; | |
19 | |
20 size = atoi(value); | |
21 if (size < 0) | |
22 return "value must be greater or equal to zero"; | |
23 | |
24 *(int *) (conf + offset) = size; | |
25 return NULL; | |
26 } |