diff options
author | Igor Sysoev <igor@sysoev.ru> | 2002-09-11 15:18:33 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2002-09-11 15:18:33 +0000 |
commit | e0268b95c6dea75f88d3874213b1aa0cd0aba692 (patch) | |
tree | 49f871f82639d76c81618bff00546591bfef37d9 /src/core/ngx_config_command.c | |
parent | 96f8377fd89b8735027ccfebea8ad9e77f40f51c (diff) | |
download | nginx-e0268b95c6dea75f88d3874213b1aa0cd0aba692.tar.gz nginx-e0268b95c6dea75f88d3874213b1aa0cd0aba692.zip |
nginx-0.0.1-2002-09-11-19:18:33 import
Diffstat (limited to 'src/core/ngx_config_command.c')
-rw-r--r-- | src/core/ngx_config_command.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/core/ngx_config_command.c b/src/core/ngx_config_command.c new file mode 100644 index 000000000..51943021b --- /dev/null +++ b/src/core/ngx_config_command.c @@ -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; +} |