Mercurial > hg > nginx
view 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 source
#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; } 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; }