diff options
| author | Daniel Stenberg <daniel@haxx.se> | 2004-10-06 07:50:18 +0000 | 
|---|---|---|
| committer | Daniel Stenberg <daniel@haxx.se> | 2004-10-06 07:50:18 +0000 | 
| commit | 39af394a1c3ae1d8ac71ad263a7c524988702c2e (patch) | |
| tree | 4ba44670440d52ff6c3b07fdef35ae3384f3dc5a /lib/cookie.c | |
| parent | 5c7dcc6c33bb9e9621cf09ada4a15f310cf1c0e0 (diff) | |
removed tabs and trailing whitespace from source
Diffstat (limited to 'lib/cookie.c')
| -rw-r--r-- | lib/cookie.c | 40 | 
1 files changed, 20 insertions, 20 deletions
| diff --git a/lib/cookie.c b/lib/cookie.c index 47ed95254..528d88f65 100644 --- a/lib/cookie.c +++ b/lib/cookie.c @@ -29,20 +29,20 @@ RECEIVING COOKIE INFORMATION  struct CookieInfo *cookie_init(char *file); -	Inits a cookie struct to store data in a local file. This is always -	called before any cookies are set. +        Inits a cookie struct to store data in a local file. This is always +        called before any cookies are set.  int cookies_set(struct CookieInfo *cookie, char *cookie_line); -	The 'cookie_line' parameter is a full "Set-cookie:" line as -	received from a server. +        The 'cookie_line' parameter is a full "Set-cookie:" line as +        received from a server. -	The function need to replace previously stored lines that this new -	line superceeds. +        The function need to replace previously stored lines that this new +        line superceeds. -	It may remove lines that are expired. +        It may remove lines that are expired. -	It should return an indication of success/error. +        It should return an indication of success/error.  SENDING COOKIE INFORMATION @@ -51,12 +51,12 @@ SENDING COOKIE INFORMATION  struct Cookies *cookie_getlist(struct CookieInfo *cookie,                                 char *host, char *path, bool secure); -	For a given host and path, return a linked list of cookies that -	the client should send to the server if used now. The secure -	boolean informs the cookie if a secure connection is achieved or -	not. +        For a given host and path, return a linked list of cookies that +        the client should send to the server if used now. The secure +        boolean informs the cookie if a secure connection is achieved or +        not. -	It shall only return cookies that haven't expired. +        It shall only return cookies that haven't expired.  Example set of cookies: @@ -775,10 +775,10 @@ void Curl_cookie_freelist(struct Cookie *co)     struct Cookie *next;     if(co) {        while(co) { -	 next = co->next; -	 free(co); /* we only free the struct since the "members" are all -		      just copied! */ -	 co = next; +         next = co->next; +         free(co); /* we only free the struct since the "members" are all +                      just copied! */ +         co = next;        }     }  } @@ -796,13 +796,13 @@ void Curl_cookie_cleanup(struct CookieInfo *c)     struct Cookie *next;     if(c) {        if(c->filename) -	 free(c->filename); +         free(c->filename);        co = c->cookies;        while(co) { -	 next = co->next; +         next = co->next;           freecookie(co); -	 co = next; +         co = next;        }        free(c); /* free the base struct as well */     } | 
