mirror of
https://github.com/nginx/nginx.git
synced 2025-08-05 22:26:15 +08:00
use ngx_uint_t instead of int,
strange to say this reduce function size by 16 bytes
This commit is contained in:
parent
6a588f80c6
commit
5143e39b4e
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user