summaryrefslogtreecommitdiff
path: root/libs/libcurl/src/parsedate.c
diff options
context:
space:
mode:
Diffstat (limited to 'libs/libcurl/src/parsedate.c')
-rw-r--r--libs/libcurl/src/parsedate.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libs/libcurl/src/parsedate.c b/libs/libcurl/src/parsedate.c
index 41fe9455dd..6438abebea 100644
--- a/libs/libcurl/src/parsedate.c
+++ b/libs/libcurl/src/parsedate.c
@@ -218,7 +218,7 @@ static int checkday(const char *check, size_t len)
what = &Curl_wkday[0];
else
return -1; /* too short */
- for(i = 0; i<7; i++) {
+ for(i = 0; i < 7; i++) {
size_t ilen = strlen(what[0]);
if((ilen == len) &&
strncasecompare(check, what[0], len))
@@ -235,7 +235,7 @@ static int checkmonth(const char *check, size_t len)
if(len != 3)
return -1; /* not a month */
- for(i = 0; i<12; i++) {
+ for(i = 0; i < 12; i++) {
if(strncasecompare(check, what[0], 3))
return i;
what++;
@@ -253,7 +253,7 @@ static int checktz(const char *check, size_t len)
if(len > 4) /* longer than any valid timezone */
return -1;
- for(i = 0; i< sizeof(tz)/sizeof(tz[0]); i++) {
+ for(i = 0; i < sizeof(tz)/sizeof(tz[0]); i++) {
size_t ilen = strlen(what->name);
if((ilen == len) &&
strncasecompare(check, what->name, len))
@@ -441,7 +441,7 @@ static int parsedate(const char *date, time_t *output)
if((tzoff == -1) &&
((end - date) == 4) &&
(val <= 1400) &&
- (indate< date) &&
+ (indate < date) &&
((date[-1] == '+' || date[-1] == '-'))) {
/* four digits and a value less than or equal to 1400 (to take into
account all sorts of funny time zone diffs) and it is preceded
@@ -456,7 +456,7 @@ static int parsedate(const char *date, time_t *output)
/* the + and - prefix indicates the local time compared to GMT,
this we need their reversed math to get what we want */
- tzoff = date[-1]=='+'?-tzoff:tzoff;
+ tzoff = date[-1]=='+' ? -tzoff : tzoff;
}
if(((end - date) == 8) &&
@@ -471,7 +471,7 @@ static int parsedate(const char *date, time_t *output)
}
if(!found && (dignext == DATE_MDAY) && (mdaynum == -1)) {
- if((val > 0) && (val<32)) {
+ if((val > 0) && (val < 32)) {
mdaynum = val;
found = TRUE;
}