diff options
author | Igor Sysoev <igor@sysoev.ru> | 2002-09-16 15:01:44 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2002-09-16 15:01:44 +0000 |
commit | 682bf8e9c04fbe2fc9548985cdec173b6a9dcb27 (patch) | |
tree | abca656ec5a3ca157b3fb37670285d49dd0800cc /src/core/ngx_config_command.c | |
parent | 1af7c82f7cde36d3813ee8f5dd45f8b03f5ad66c (diff) | |
download | nginx-682bf8e9c04fbe2fc9548985cdec173b6a9dcb27.tar.gz nginx-682bf8e9c04fbe2fc9548985cdec173b6a9dcb27.zip |
nginx-0.0.1-2002-09-16-19:01:44 import
Diffstat (limited to 'src/core/ngx_config_command.c')
-rw-r--r-- | src/core/ngx_config_command.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/core/ngx_config_command.c b/src/core/ngx_config_command.c index 51943021b..e764fef23 100644 --- a/src/core/ngx_config_command.c +++ b/src/core/ngx_config_command.c @@ -12,3 +12,15 @@ char *ngx_conf_set_size_slot(char *conf, int offset, char *value) *(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; +} |