mirror of
https://github.com/curl/curl.git
synced 2026-07-29 00:03:12 +03:00
docs: Fix missing semicolon in example code
Multiple share examples were missing a semicolon on the line defining the CURLSHcode variable. Closes: #8697 Reported-by: Michael Kaufmann <mail@michael-kaufmann.ch> Reviewed-by: Daniel Stenberg <daniel@haxx.se>
This commit is contained in:
parent
34bbf96475
commit
fe87e10c81
9 changed files with 9 additions and 9 deletions
|
|
@ -36,7 +36,7 @@ Passing in a NULL pointer in \fIshare_handle\fP will make this function return
|
|||
immediately with no action.
|
||||
.SH EXAMPLE
|
||||
.nf
|
||||
CURLSHcode sh
|
||||
CURLSHcode sh;
|
||||
share = curl_share_init();
|
||||
sh = curl_share_setopt(share, CURLSHOPT_SHARE, CURL_LOCK_DATA_CONNECT);
|
||||
/* use the share, then ... */
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ This \fIshare handle\fP is what you pass to curl using the
|
|||
specific curl handle use the data in this share.
|
||||
.SH EXAMPLE
|
||||
.nf
|
||||
CURLSHcode sh
|
||||
CURLSHcode sh;
|
||||
share = curl_share_init();
|
||||
sh = curl_share_setopt(share, CURLSHOPT_SHARE, CURL_LOCK_DATA_CONNECT);
|
||||
if(sh)
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ See \fICURLSHOPT_UNSHARE(3)\fP.
|
|||
See \fICURLSHOPT_USERDATA(3)\fP.
|
||||
.SH EXAMPLE
|
||||
.nf
|
||||
CURLSHcode sh
|
||||
CURLSHcode sh;
|
||||
share = curl_share_init();
|
||||
sh = curl_share_setopt(share, CURLSHOPT_SHARE, CURL_LOCK_DATA_CONNECT);
|
||||
if(sh)
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ The curl_share_strerror() function returns a string describing the CURLSHcode
|
|||
error code passed in the argument \fIerrornum\fP.
|
||||
.SH EXAMPLE
|
||||
.nf
|
||||
CURLSHcode sh
|
||||
CURLSHcode sh;
|
||||
share = curl_share_init();
|
||||
sh = curl_share_setopt(share, CURLSHOPT_SHARE, CURL_LOCK_DATA_CONNECT);
|
||||
if(sh)
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ This pointer is not used by libcurl itself.
|
|||
All
|
||||
.SH EXAMPLE
|
||||
.nf
|
||||
CURLSHcode sh
|
||||
CURLSHcode sh;
|
||||
share = curl_share_init();
|
||||
sh = curl_share_setopt(share, CURLSHOPT_LOCKFUNC, mutex_lock);
|
||||
if(sh)
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@ multi handle will share PSL cache by default without using this option.
|
|||
All
|
||||
.SH EXAMPLE
|
||||
.nf
|
||||
CURLSHcode sh
|
||||
CURLSHcode sh;
|
||||
share = curl_share_init();
|
||||
sh = curl_share_setopt(share, CURLSHOPT_SHARE, CURL_LOCK_DATA_COOKIE);
|
||||
if(sh)
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ This pointer is not used by libcurl itself.
|
|||
All
|
||||
.SH EXAMPLE
|
||||
.nf
|
||||
CURLSHcode sh
|
||||
CURLSHcode sh;
|
||||
share = curl_share_init();
|
||||
sh = curl_share_setopt(share, CURLSHOPT_UNLOCKFUNC, mutex_unlock);
|
||||
if(sh)
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ The Public Suffix List is no longer shared.
|
|||
All
|
||||
.SH EXAMPLE
|
||||
.nf
|
||||
CURLSHcode sh
|
||||
CURLSHcode sh;
|
||||
share = curl_share_init();
|
||||
sh = curl_share_setopt(share, CURLSHOPT_UNSHARE, CURL_LOCK_DATA_COOKIE);
|
||||
if(sh)
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ and \fICURLSHOPT_UNLOCKFUNC(3)\fP.
|
|||
All
|
||||
.SH EXAMPLE
|
||||
.nf
|
||||
CURLSHcode sh
|
||||
CURLSHcode sh;
|
||||
struct secrets private_stuff;
|
||||
share = curl_share_init();
|
||||
sh = curl_share_setopt(share, CURLSHOPT_USERDATA, &private_stuff);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue