diff options
author | Martin Storsjö <martin@martin.st> | 2010-06-01 07:46:23 +0000 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2010-06-01 07:46:23 +0000 |
commit | 27241cbffe180fc92f9f519c6ea7957fc4b3b0c9 (patch) | |
tree | 7076509cac1a6aec2ff053b1a95fe8eab7b99465 /libavformat/http.c | |
parent | 3d9408f4a7129ba6fb06f838afa5663c5c73075d (diff) | |
download | ffmpeg-27241cbffe180fc92f9f519c6ea7957fc4b3b0c9.tar.gz |
Declare the url_write buffer parameter as const
Originally committed as revision 23401 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/http.c')
-rw-r--r-- | libavformat/http.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |