diff options
author | Marco Peereboom <marco@conformal.com> | 2012-04-30 16:39:12 -0500 |
---|---|---|
committer | Marco Peereboom <marco@conformal.com> | 2012-04-30 16:39:12 -0500 |
commit | 78eabebdda7c2fe82c0b5f6b9a7b861159249f64 (patch) | |
tree | c63987554d75580506e53c972eafcc6ee58164a6 | |
parent | 2c942c203267f84febbf3e32ee7cad4e6b0b9aca (diff) | |
download | xombrero-78eabebdda7c2fe82c0b5f6b9a7b861159249f64.tar.gz |
time_t -> long long -> fs271
-rw-r--r-- | xxxterm.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/xxxterm.c b/xxxterm.c index dd9d2a1..782b89e 100644 --- a/xxxterm.c +++ b/xxxterm.c @@ -4216,8 +4216,8 @@ strict_transport_add(const char *domain, time_t timeout, int subdomains) if (enable_strict_transport == FALSE) return (0); - DPRINTF("strict_transport_add(%s,%ld,%d)\n", domain, timeout, - subdomains); + DPRINTF("strict_transport_add(%s,%lld,%d)\n", domain, + (long long)timeout, subdomains); now = time(NULL); if (timeout < now) @@ -4253,7 +4253,7 @@ strict_transport_add(const char *domain, time_t timeout, int subdomains) RB_FOREACH(d, strict_transport_tree, &st_tree) { if (d->timeout < now) continue; - fprintf(f, "%s\t%d\t%d\n", d->host, (int)d->timeout, + fprintf(f, "%s\t%lld\t%d\n", d->host, (long long)d->timeout, d->flags & XT_STS_FLAGS_INCLUDE_SUBDOMAINS); } fclose(f); @@ -4278,7 +4278,7 @@ strict_transport_add(const char *domain, time_t timeout, int subdomains) } fseek(f, 0, SEEK_END); - fprintf(f,"%s\t%d\t%d\n", d->host, (int)timeout, subdomains); + fprintf(f,"%s\t%lld\t%d\n", d->host, (long long)timeout, subdomains); fclose(f); } return (0); @@ -4379,7 +4379,7 @@ strict_transport_security_cb(SoupMessage *msg, gpointer data) SoupURI *uri; const char *sts; char *ptr; - int timeout = 0; + time_t timeout = 0; int subdomains = FALSE; if (msg == NULL) @@ -4394,7 +4394,7 @@ strict_transport_security_cb(SoupMessage *msg, gpointer data) if ((ptr = strcasestr(sts, "max-age="))) { ptr += strlen("max-age="); - timeout = atoi(ptr); + timeout = atoll(ptr); } else return; /* malformed header - max-age must be included */ |