From 27241cbffe180fc92f9f519c6ea7957fc4b3b0c9 Mon Sep 17 00:00:00 2001 From: Martin Storsjö 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/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/file.c') diff --git a/libavformat/file.c b/libavformat/file.c index 8873d5fcaf..d6ba1fa362 100644 --- a/libavformat/file.c +++ b/libavformat/file.c @@ -64,7 +64,7 @@ static int file_read(URLContext *h, unsigned char *buf, int size) return read(fd, buf, size); } -static int file_write(URLContext *h, unsigned char *buf, int size) +static int file_write(URLContext *h, const unsigned char *buf, int size) { int fd = (intptr_t) h->priv_data; return write(fd, buf, size); -- cgit v1.2.3