diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2009-10-15 13:09:58 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2009-10-15 13:09:58 +0000 |
| commit | 5143e39b4ed660e039762f5b6ca1274ea58bfe08 (patch) | |
| tree | 78c21fdee008368d4d38c34ac546b91347c1b993 /src | |
| parent | 6a588f80c6b5992e26338b8cae1091ec09b578ac (diff) | |
| download | nginx-5143e39b4ed660e039762f5b6ca1274ea58bfe08.tar.gz nginx-5143e39b4ed660e039762f5b6ca1274ea58bfe08.tar.bz2 | |
use ngx_uint_t instead of int,
strange to say this reduce function size by 16 bytes
Diffstat (limited to 'src')
| -rw-r--r-- | src/http/ngx_http_parse_time.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/http/ngx_http_parse_time.c b/src/http/ngx_http_parse_time.c index 23fc23854..5ecfc8295 100644 --- a/src/http/ngx_http_parse_time.c +++ b/src/http/ngx_http_parse_time.c @@ -8,13 +8,14 @@ #include <ngx_core.h> -static int mday[] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }; +static ngx_uint_t mday[] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }; time_t ngx_http_parse_time(u_char *value, size_t len) { - u_char *p, *end; - int day, month, year, hour, min, sec; + u_char *p, *end; + ngx_int_t month; + ngx_uint_t day, year, hour, min, sec; enum { no = 0, rfc822, /* Tue, 10 Nov 2002 23:50:13 */ |
