aboutsummaryrefslogtreecommitdiffstats
path: root/cookie.c
diff options
context:
space:
mode:
authorTatsuya Kinoshita <tats@debian.org>2015-01-15 10:13:51 +0000
committerTatsuya Kinoshita <tats@debian.org>2015-01-15 10:13:51 +0000
commit5e9545756b8387338febc48874c93df7e0b8e8ee (patch)
treeb230a53cb985e678a4ed19d9539d2ae033d5ed87 /cookie.c
parentCorrect printf arguments and use asprintf (diff)
downloadw3m-5e9545756b8387338febc48874c93df7e0b8e8ee.tar.gz
w3m-5e9545756b8387338febc48874c93df7e0b8e8ee.zip
Do not use C99 printf format specifiers and asprintf
Diffstat (limited to 'cookie.c')
-rw-r--r--cookie.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cookie.c b/cookie.c
index dbd698b..c11649c 100644
--- a/cookie.c
+++ b/cookie.c
@@ -461,9 +461,9 @@ save_cookies(void)
for (p = First_cookie; p; p = p->next) {
if (!(p->flag & COO_USE) || p->flag & COO_DISCARD)
continue;
- fprintf(fp, "%s\t%s\t%s\t%lld\t%s\t%s\t%d\t%d\t%s\t%s\t%s\n",
+ fprintf(fp, "%s\t%s\t%s\t%ld\t%s\t%s\t%d\t%d\t%s\t%s\t%s\n",
parsedURL2Str(&p->url)->ptr,
- p->name->ptr, p->value->ptr, (long long) p->expires,
+ p->name->ptr, p->value->ptr, (long)p->expires,
p->domain->ptr, p->path->ptr, p->flag,
p->version, str2charp(p->comment),
(p->portl) ? portlist2str(p->portl)->ptr : "",