Mercurial > hg > nginx
diff 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 |
line wrap: on
line diff
--- a/src/core/ngx_config_command.c Fri Sep 13 14:47:42 2002 +0000 +++ b/src/core/ngx_config_command.c Mon Sep 16 15:01:44 2002 +0000 @@ -12,3 +12,15 @@ *(int *) (conf + offset) = size; return NULL; } + +char *ngx_conf_set_time_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; +}