summaryrefslogtreecommitdiff
path: root/libpiano/src/http.c
diff options
context:
space:
mode:
authorLars-Dominik Braun <PromyLOPh@gmail.com>2008-07-23 15:47:28 +0200
committerLars-Dominik Braun <PromyLOPh@gmail.com>2008-07-23 15:47:28 +0200
commit5afcd41752602f8c76faab8042a46e6b8c66bbb6 (patch)
tree39870e8e903490896b3f617e28b321ac78b4c83a /libpiano/src/http.c
parent95df994be69a49a6e40a105fa349a553dd03a766 (diff)
downloadpianobar-5afcd41752602f8c76faab8042a46e6b8c66bbb6.tar.gz
pianobar-5afcd41752602f8c76faab8042a46e6b8c66bbb6.tar.bz2
pianobar-5afcd41752602f8c76faab8042a46e6b8c66bbb6.zip
Be correct, use "const"
Diffstat (limited to 'libpiano/src/http.c')
-rw-r--r--libpiano/src/http.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libpiano/src/http.c b/libpiano/src/http.c
index ada1510..91941d9 100644
--- a/libpiano/src/http.c
+++ b/libpiano/src/http.c
@@ -58,7 +58,7 @@ size_t PianoCurlRetToVar (void *ptr, size_t size, size_t nmemb, void *stream) {
* @param put received data here, memory is allocated by this function
* @return nothing yet
*/
-PianoReturn_t PianoHttpPost (CURL *ch, char *url, char *postData,
+PianoReturn_t PianoHttpPost (CURL *ch, const char *url, const char *postData,
char **retData) {
struct curl_slist *headers = NULL;
/* Let's hope nothing will be bigger than this... */
@@ -96,7 +96,7 @@ PianoReturn_t PianoHttpPost (CURL *ch, char *url, char *postData,
* @param put received data here, memory is allocated by this function
* @return nothing yet
*/
-PianoReturn_t PianoHttpGet (CURL *ch, char *url, char **retData) {
+PianoReturn_t PianoHttpGet (CURL *ch, const char *url, char **retData) {
/* Let's hope nothing will be bigger than this... */
char curlRet[PIANO_HTTP_BUFFER_SIZE];
PianoReturn_t ret;