]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
docs: Fix missing semicolon in example code
authorDaniel Gustafsson <daniel@yesql.se>
Fri, 15 Apr 2022 21:35:15 +0000 (23:35 +0200)
committerDaniel Gustafsson <daniel@yesql.se>
Fri, 15 Apr 2022 21:35:15 +0000 (23:35 +0200)
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>
docs/libcurl/curl_share_cleanup.3
docs/libcurl/curl_share_init.3
docs/libcurl/curl_share_setopt.3
docs/libcurl/curl_share_strerror.3
docs/libcurl/opts/CURLSHOPT_LOCKFUNC.3
docs/libcurl/opts/CURLSHOPT_SHARE.3
docs/libcurl/opts/CURLSHOPT_UNLOCKFUNC.3
docs/libcurl/opts/CURLSHOPT_UNSHARE.3
docs/libcurl/opts/CURLSHOPT_USERDATA.3

index 35d981a8c8feaf06476bbb7eaba4758c6716598a..a4aa2cf0185eeff404c9c07ca3924e060765f13f 100644 (file)
@@ -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 ... */
index aaa130bed2170df16154636b594bf404a993806a..6c697d72d245af99a6a5ea926415fe2a954f0815 100644 (file)
@@ -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)
index ad38e95601d6f3622c7945d164ebb01136266c90..8a080ee0a10e685193bfb9ef4413b6ee26793b36 100644 (file)
@@ -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)
index 1d5ce3a2b4bfb08c12c5de0018bf85afd849d95e..5e70f25b253ea4c66abab11dc11a7d33ed2a90d9 100644 (file)
@@ -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)
index 81a2a509c9380a013e386894d1229b2688deca5d..554dfd74e847dcc9b56be09c6706b09716835043 100644 (file)
@@ -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)
index 5e5cc35248be780f56793708cced061c1e998fcf..e64b669ce1101498f70d1237e5a420eb2a80dcdd 100644 (file)
@@ -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)
index d22db844c1693ea47402f5d85321abb4b7bc21db..10be64ed094a272de19fc4097f30e326b3e6686d 100644 (file)
@@ -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)
index 1f9accc3cf5f0d0c4faccec3fff7d8bb4264f508..420ffb5c26fff8ecc0304c1a6aac59894cf36711 100644 (file)
@@ -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)
index 79f584c2b6e16b32d9a56dc48ebbf576456cbe7c..a188cd8f46ee920e7f0ff58c0aecf4a269ed40f9 100644 (file)
@@ -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);