Mercurial > hg > nginx
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/core/ngx_config_command.c Wed Sep 11 15:18:33 2002 +0000 @@ -0,0 +1,14 @@ + +#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; +}