Loading lib/conncache.c +1 −1 Original line number Diff line number Diff line Loading @@ -46,7 +46,7 @@ static void free_bundle_hash_entry(void *freethis) Curl_bundle_destroy(b); } struct conncache *Curl_conncache_init(int type) struct conncache *Curl_conncache_init(conncachetype type) { struct conncache *connc; Loading lib/conncache.h +10 −8 Original line number Diff line number Diff line #ifndef __CONNCACHE_H #define __CONNCACHE_H #ifndef HEADER_CURL_CONNCACHE_H #define HEADER_CURL_CONNCACHE_H /*************************************************************************** * _ _ ____ _ * Project ___| | | | _ \| | Loading @@ -22,16 +22,18 @@ * ***************************************************************************/ struct conncache { struct curl_hash *hash; enum { typedef enum { CONNCACHE_PRIVATE, /* used for an easy handle alone */ CONNCACHE_MULTI /* shared within a multi handle */ } type; } conncachetype; struct conncache { struct curl_hash *hash; conncachetype type; size_t num_connections; }; struct conncache *Curl_conncache_init(int type); struct conncache *Curl_conncache_init(conncachetype type); void Curl_conncache_destroy(struct conncache *connc); Loading @@ -53,4 +55,4 @@ Curl_conncache_find_first_connection(struct conncache *connc); void Curl_conncache_print(struct conncache *connc); #endif /* __CONNCACHE_H */ #endif /* HEADER_CURL_CONNCACHE_H */ Loading
lib/conncache.c +1 −1 Original line number Diff line number Diff line Loading @@ -46,7 +46,7 @@ static void free_bundle_hash_entry(void *freethis) Curl_bundle_destroy(b); } struct conncache *Curl_conncache_init(int type) struct conncache *Curl_conncache_init(conncachetype type) { struct conncache *connc; Loading
lib/conncache.h +10 −8 Original line number Diff line number Diff line #ifndef __CONNCACHE_H #define __CONNCACHE_H #ifndef HEADER_CURL_CONNCACHE_H #define HEADER_CURL_CONNCACHE_H /*************************************************************************** * _ _ ____ _ * Project ___| | | | _ \| | Loading @@ -22,16 +22,18 @@ * ***************************************************************************/ struct conncache { struct curl_hash *hash; enum { typedef enum { CONNCACHE_PRIVATE, /* used for an easy handle alone */ CONNCACHE_MULTI /* shared within a multi handle */ } type; } conncachetype; struct conncache { struct curl_hash *hash; conncachetype type; size_t num_connections; }; struct conncache *Curl_conncache_init(int type); struct conncache *Curl_conncache_init(conncachetype type); void Curl_conncache_destroy(struct conncache *connc); Loading @@ -53,4 +55,4 @@ Curl_conncache_find_first_connection(struct conncache *connc); void Curl_conncache_print(struct conncache *connc); #endif /* __CONNCACHE_H */ #endif /* HEADER_CURL_CONNCACHE_H */