Mercurial > libavformat.hg
diff http.c @ 6068:7fdda2416684 libavformat
Declare the url_write buffer parameter as const
author | mstorsjo |
---|---|
date | Tue, 01 Jun 2010 07:46:23 +0000 |
parents | 61062082488b |
children | c7ddd67739a6 |
line wrap: on
line diff
--- a/http.c Mon May 31 10:47:36 2010 +0000 +++ b/http.c Tue Jun 01 07:46:23 2010 +0000 @@ -49,7 +49,7 @@ 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 @@ } /* 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;