diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2007-07-16 21:22:12 +0000 |
---|---|---|
committer | Dan Fandrich <dan@coneharvesters.com> | 2007-07-16 21:22:12 +0000 |
commit | 4706a9334149f656eef9b5e8888da1ead23b0941 (patch) | |
tree | 913c6506b908fd3c42b7aaf1b39f014fd99adf36 /docs/examples/cookie_interface.c | |
parent | b85b56a73d46a4842daae280a85eb60c7e675796 (diff) |
Fixed some more simple compile warnings in the examples.
Diffstat (limited to 'docs/examples/cookie_interface.c')
-rw-r--r-- | docs/examples/cookie_interface.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/examples/cookie_interface.c b/docs/examples/cookie_interface.c index a39106e34..b0f33831d 100644 --- a/docs/examples/cookie_interface.c +++ b/docs/examples/cookie_interface.c @@ -10,6 +10,7 @@ #include <stdio.h> #include <string.h> +#include <stdlib.h> #include <errno.h> #include <time.h> @@ -74,7 +75,7 @@ main(void) #define snprintf _snprintf #endif /* Netscape format cookie */ - snprintf(nline, sizeof(nline), "%s\t%s\t%s\t%s\t%u\t%s\t%s", + 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!"); res = curl_easy_setopt(curl, CURLOPT_COOKIELIST, nline); if (res != CURLE_OK) { |