summaryrefslogtreecommitdiff
path: root/lib/share.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2016-06-21 19:31:24 +0200
committerDaniel Stenberg <daniel@haxx.se>2016-06-22 10:28:41 +0200
commit80388edefca58f8199cdfde077efb7f6d91e60fa (patch)
tree75a7c62086c38a4f85a4c27c82cac7d98afccbf8 /lib/share.c
parent434f8d0389f2969b393ff81ead713b7600502f27 (diff)
downloadcurl-80388edefca58f8199cdfde077efb7f6d91e60fa.tar.gz
typedefs: use the full structs in internal code...
... and save the typedef'ed names for headers and external APIs.
Diffstat (limited to 'lib/share.c')
-rw-r--r--lib/share.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/share.c b/lib/share.c
index f12feefcd..5b3957fcf 100644
--- a/lib/share.c
+++ b/lib/share.c
@@ -31,7 +31,7 @@
/* The last #include file should be: */
#include "memdebug.h"
-CURLSH *
+struct Curl_share *
curl_share_init(void)
{
struct Curl_share *share = calloc(1, sizeof(struct Curl_share));
@@ -49,9 +49,8 @@ curl_share_init(void)
#undef curl_share_setopt
CURLSHcode
-curl_share_setopt(CURLSH *sh, CURLSHoption option, ...)
+curl_share_setopt(struct Curl_share *share, CURLSHoption option, ...)
{
- struct Curl_share *share = (struct Curl_share *)sh;
va_list param;
int type;
curl_lock_function lockfunc;
@@ -172,10 +171,8 @@ curl_share_setopt(CURLSH *sh, CURLSHoption option, ...)
}
CURLSHcode
-curl_share_cleanup(CURLSH *sh)
+curl_share_cleanup(struct Curl_share *share)
{
- struct Curl_share *share = (struct Curl_share *)sh;
-
if(share == NULL)
return CURLSHE_INVALID;