From 5afcd41752602f8c76faab8042a46e6b8c66bbb6 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Wed, 23 Jul 2008 15:47:28 +0200 Subject: Be correct, use "const" --- libpiano/src/http.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libpiano/src/http.c') 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; -- cgit v1.2.3