Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/cookie.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
size_t COOKIESIZE = sizeof(struct COOKIE_T);

private BOOLEAN __parse_input(COOKIE this, char *str, char *host);
private int __parse_time(const char *str);
private time_t __parse_time(const char *str);
private time_t __timegm(struct tm *tm);
private int __mkmonth(char * s, char ** ends);
private char * months[12] = {
Expand Down Expand Up @@ -544,7 +544,7 @@ __timegm(struct tm *tm) {
* Wkd Mon 00 00:00:00 0000 GMT (CTIME)
* 1*DIGIT (delta-seconds)
*/
private int
private time_t
__parse_time(const char *str)
{
char *s;
Expand Down Expand Up @@ -588,7 +588,7 @@ __parse_time(const char *str)
tm.tm_min = strtol(++s, &s, 10);
tm.tm_sec = strtol(++s, &s, 10);
} else {
return atol(str); // delta seconds format
return atoll(str); // delta seconds format
}
} else { /* ANSI C asctime() format: "Wkd Mon DD HH:MM:SS YYYY" */
s = (char *) str;
Expand Down