From 27241cbffe180fc92f9f519c6ea7957fc4b3b0c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Tue, 1 Jun 2010 07:46:23 +0000 Subject: Declare the url_write buffer parameter as const Originally committed as revision 23401 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/http.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libavformat/http.c') diff --git a/libavformat/http.c b/libavformat/http.c index e697578486..56f8021025 100644 --- a/libavformat/http.c +++ b/libavformat/http.c @@ -49,7 +49,7 @@ typedef struct { static int http_connect(URLContext *h, const char *path, const char *hoststr, const char *auth, int *new_location); -static int http_write(URLContext *h, uint8_t *buf, int size); +static int http_write(URLContext *h, const uint8_t *buf, int size); /* return non zero if error */ @@ -358,7 +358,7 @@ static int http_read(URLContext *h, uint8_t *buf, int size) } /* used only when posting data */ -static int http_write(URLContext *h, uint8_t *buf, int size) +static int http_write(URLContext *h, const uint8_t *buf, int size) { char temp[11]; /* 32-bit hex + CRLF + nul */ int ret; -- cgit v1.2.3