aboutsummaryrefslogtreecommitdiff
path: root/lib/cookie.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2011-06-03 20:02:07 +0200
committerDaniel Stenberg <daniel@haxx.se>2011-06-03 20:02:07 +0200
commit9776f3445d96238d8490d1d81c915014517c585b (patch)
tree6a5abc01912476c64a3c5824dc90c55668e30f5a /lib/cookie.c
parentadeac15d8e1946fd2e3df9c7abebe8823437fc3c (diff)
cookie_output: made private
Diffstat (limited to 'lib/cookie.c')
-rw-r--r--lib/cookie.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/cookie.c b/lib/cookie.c
index 301beaee7..7657da06e 100644
--- a/lib/cookie.c
+++ b/lib/cookie.c
@@ -101,7 +101,6 @@ Example set of cookies:
/* The last #include file should be: */
#include "memdebug.h"
-
static void freecookie(struct Cookie *co)
{
if(co->expirestr)
@@ -1040,14 +1039,14 @@ static char *get_netscape_format(const struct Cookie *co)
}
/*
- * Curl_cookie_output()
+ * cookie_output()
*
* Writes all internally known cookies to the specified file. Specify
* "-" as file name to write to stdout.
*
* The function returns non-zero on write failure.
*/
-int Curl_cookie_output(struct CookieInfo *c, const char *dumphere)
+static int cookie_output(struct CookieInfo *c, const char *dumphere)
{
struct Cookie *co;
FILE *out;
@@ -1147,7 +1146,7 @@ void Curl_flush_cookies(struct SessionHandle *data, int cleanup)
Curl_share_lock(data, CURL_LOCK_DATA_COOKIE, CURL_LOCK_ACCESS_SINGLE);
/* if we have a destination file for all the cookies to get dumped to */
- if(Curl_cookie_output(data->cookies, data->set.str[STRING_COOKIEJAR]))
+ if(cookie_output(data->cookies, data->set.str[STRING_COOKIEJAR]))
infof(data, "WARNING: failed to save cookies in %s\n",
data->set.str[STRING_COOKIEJAR]);
}