X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_date_api.c;fp=http_date_api.c;h=37047b602326187ecd20770609c158f58a7b8f71;hp=c59b2cfe4c00e172ec1cfa3af93c73b75f27748d;hb=e6d4ae260275041fcc32f06f3487cdef6613c646;hpb=6deee2e3d2d6282dd76e3725fe2de6c7833bd57f diff --git a/http_date_api.c b/http_date_api.c index c59b2cf..37047b6 100644 --- a/http_date_api.c +++ b/http_date_api.c @@ -132,7 +132,7 @@ static int check_month(char *month) static int check_tzone(char *tzone) { - int i; + unsigned i; const struct time_zone *check = time_zones; for (i = 0; i < sizeof(time_zones) / sizeof(time_zones[0]); i++) { if (!strcmp(tzone, check->name)) { @@ -175,7 +175,7 @@ PHP_HTTP_API time_t _http_parse_date(const char *date) enum assume_next dignext = DATE_MDAY; const char *indate = date; - int found = 0, part = 0; /* max 6 parts */ + int part = 0; /* max 6 parts */ while (*date && (part < 6)) { int found = 0;