]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
curl.h: name all public function parameters
authorRyan Schmidt <git@ryandesign.com>
Mon, 5 Dec 2022 18:25:57 +0000 (12:25 -0600)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 6 Dec 2022 08:29:21 +0000 (09:29 +0100)
Most public function parameters already have names; this adds those
that were missing.

Closes #10036

include/curl/curl.h

index 505d2e9d21f710b2ff859f6dea55f0b581ede261..c15fbbf324c089179126bed77f51677b39214649 100644 (file)
@@ -2772,8 +2772,8 @@ CURL_EXTERN CURLsslset curl_global_sslset(curl_sslbackend id, const char *name,
  * Appends a string to a linked list. If no list exists, it will be created
  * first. Returns the new list, after appending.
  */
-CURL_EXTERN struct curl_slist *curl_slist_append(struct curl_slist *,
-                                                 const char *);
+CURL_EXTERN struct curl_slist *curl_slist_append(struct curl_slist *list,
+                                                 const char *data);
 
 /*
  * NAME curl_slist_free_all()
@@ -2782,7 +2782,7 @@ CURL_EXTERN struct curl_slist *curl_slist_append(struct curl_slist *,
  *
  * free a previously built curl_slist.
  */
-CURL_EXTERN void curl_slist_free_all(struct curl_slist *);
+CURL_EXTERN void curl_slist_free_all(struct curl_slist *list);
 
 /*
  * NAME curl_getdate()
@@ -2995,8 +2995,9 @@ typedef enum {
 } CURLSHoption;
 
 CURL_EXTERN CURLSH *curl_share_init(void);
-CURL_EXTERN CURLSHcode curl_share_setopt(CURLSH *, CURLSHoption option, ...);
-CURL_EXTERN CURLSHcode curl_share_cleanup(CURLSH *);
+CURL_EXTERN CURLSHcode curl_share_setopt(CURLSH *share, CURLSHoption option,
+                                         ...);
+CURL_EXTERN CURLSHcode curl_share_cleanup(CURLSH *share);
 
 /****************************************************************************
  * Structures for querying information about the curl library at runtime.