diff options
author | Yang Tse <yangsita@gmail.com> | 2012-12-05 12:59:14 +0100 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2012-12-05 12:59:14 +0100 |
commit | fe2b2a3b9dbe18883cf7c9789cd958915978dc3a (patch) | |
tree | aae4d39195b50e88ab1e0bd5334e97e08f03d5cd /docs/examples/cookie_interface.c | |
parent | 7332a7cafba43c96893a8df9b08e5d15df4f3288 (diff) | |
download | gnurl-fe2b2a3b9dbe18883cf7c9789cd958915978dc3a.tar.gz gnurl-fe2b2a3b9dbe18883cf7c9789cd958915978dc3a.tar.bz2 gnurl-fe2b2a3b9dbe18883cf7c9789cd958915978dc3a.zip |
examples: fix compilation issues - commit 7332a7cafb follow-up
Diffstat (limited to 'docs/examples/cookie_interface.c')
-rw-r--r-- | docs/examples/cookie_interface.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/examples/cookie_interface.c b/docs/examples/cookie_interface.c index ac3685fd8..2e7c66db2 100644 --- a/docs/examples/cookie_interface.c +++ b/docs/examples/cookie_interface.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -89,7 +89,7 @@ main(void) #endif /* Netscape format cookie */ snprintf(nline, sizeof(nline), "%s\t%s\t%s\t%s\t%lu\t%s\t%s", - ".google.com", "TRUE", "/", "FALSE", time(NULL) + 31337, "PREF", "hello google, i like you very much!"); + ".google.com", "TRUE", "/", "FALSE", (unsigned long)time(NULL) + 31337UL, "PREF", "hello google, i like you very much!"); res = curl_easy_setopt(curl, CURLOPT_COOKIELIST, nline); if (res != CURLE_OK) { fprintf(stderr, "Curl curl_easy_setopt failed: %s\n", curl_easy_strerror(res)); |