aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-09-20 13:21:48 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-09-20 13:21:48 +0000
commit2de62cb06f5f7abdbcc55fc219bf86d8433125ec (patch)
tree5e7f130ea356433d7c8a6f9a622472fb2ebdcb17
parentbe1df3ca0aa2dcdd5f64a289549753076dcd05b4 (diff)
less long => int implicit conversion warnings
-rw-r--r--lib/parsedate.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/parsedate.c b/lib/parsedate.c
index 0c54f9f45..836340c07 100644
--- a/lib/parsedate.c
+++ b/lib/parsedate.c
@@ -224,11 +224,11 @@ static time_t Curl_parsedate(const char *date)
time_t t = 0;
int wdaynum=-1; /* day of the week number, 0-6 (mon-sun) */
int monnum=-1; /* month of the year number, 0-11 */
- long mdaynum=-1; /* day of month, 1 - 31 */
+ int mdaynum=-1; /* day of month, 1 - 31 */
int hournum=-1;
int minnum=-1;
int secnum=-1;
- long yearnum=-1;
+ int yearnum=-1;
int tzoff=-1;
struct tm tm;
enum assume dignext = DATE_MDAY;
@@ -273,7 +273,7 @@ static time_t Curl_parsedate(const char *date)
}
else if(isdigit((int)*date)) {
/* a digit */
- long val;
+ int val;
char *end;
if((secnum == -1) &&
(3 == sscanf(date, "%02d:%02d:%02d", &hournum, &minnum, &secnum))) {
@@ -282,7 +282,7 @@ static time_t Curl_parsedate(const char *date)
found = TRUE;
}
else {
- val = strtol(date, &end, 10);
+ val = (int)strtol(date, &end, 10);
if((tzoff == -1) &&
((end - date) == 4) &&