Skip to content

Commit

Permalink
fix constness of some char*
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinNowak committed Nov 20, 2014
1 parent cfedee6 commit 6a93794
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions etc/c/curl.d
Expand Up @@ -1473,7 +1473,7 @@ void curl_formfree(curl_httppost *form);
* Returns a malloc()'ed string that MUST be curl_free()ed after usage is
* complete. DEPRECATED - see lib/README.curlx
*/
char * curl_getenv(char *variable);
char * curl_getenv(in char *variable);

/**
* Name: curl_version()
Expand Down Expand Up @@ -1580,7 +1580,7 @@ struct curl_slist
* Appends a string to a linked list. If no list exists, it will be created
* first. Returns the new list, after appending.
*/
curl_slist * curl_slist_append(curl_slist *, char *);
curl_slist * curl_slist_append(curl_slist *, in char *);

/**
* Name: curl_slist_free_all()
Expand Down Expand Up @@ -1869,7 +1869,7 @@ curl_version_info_data * curl_version_info(CURLversion );
* into the equivalent human readable error string. This is useful
* for printing meaningful error messages.
*/
char * curl_easy_strerror(CURLcode );
const(char)* curl_easy_strerror(CURLcode );

/**
* Name: curl_share_strerror()
Expand All @@ -1880,7 +1880,7 @@ char * curl_easy_strerror(CURLcode );
* into the equivalent human readable error string. This is useful
* for printing meaningful error messages.
*/
char * curl_share_strerror(CURLSHcode );
const(char)* curl_share_strerror(CURLSHcode );

/**
* Name: curl_easy_pause()
Expand Down Expand Up @@ -2197,7 +2197,7 @@ extern (C) CURLMsg * curl_multi_info_read(CURLM *multi_handle, int *msgs_in_queu
*
* Returns: A pointer to a zero-terminated error message.
*/
extern (C) char * curl_multi_strerror(CURLMcode );
extern (C) const(char)* curl_multi_strerror(CURLMcode );

/**
* Name: curl_multi_socket() and
Expand Down

0 comments on commit 6a93794

Please sign in to comment.