aboutsummarylogtreecommitdiffstats
path: root/api.h
diff options
context:
space:
mode:
authorAntony Kellermann2018-05-12 23:34:44 -0400
committerAntony Kellermann2018-05-12 23:34:44 -0400
commit6c833af5fce3be8ed1d572df68d018449fde3786 (patch)
tree84fec291f229b3b22c345a91e497a9f422ad8fda /api.h
parentac147a717cc3a06e75bf41539b19dbfb775482f2 (diff)
downloadaur-6c833af5fce3be8ed1d572df68d018449fde3786.tar.gz
Minor changes
Diffstat (limited to 'api.h')
-rw-r--r--api.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/api.h b/api.h
index bd035ce49325..1a78ac361710 100644
--- a/api.h
+++ b/api.h
@@ -47,7 +47,7 @@ size_t api_string_writefunc(void* ptr, size_t size, size_t nmemb, String* hStrin
* @param post_field data needed for POST
* @return NULL if no response from server. Otherwise, String containing data.
*/
-String* api_curl_data(char* url, char* post_field);
+String* api_curl_data(const char* url, const char* post_field);
/**
* Returns a double* containing the current price and yesterday's price of a stock or cryptocurrency.
@@ -122,7 +122,7 @@ void news_print_top_three(const char* ticker_name_string);
* are specified, those will be printed as well.
* @param jobj the JSON array
*/
-void json_print_news(Json* jobj);
+void json_print_news(const Json* jobj);
/**
* Prints information about the symbol ticker_name_string by calling the function json_print_news.