diff file.c @ 6068:7fdda2416684 libavformat

Declare the url_write buffer parameter as const
author mstorsjo
date Tue, 01 Jun 2010 07:46:23 +0000
parents cb7e1e218016
children 9be5a847f59c
line wrap: on
line diff
--- a/file.c	Mon May 31 10:47:36 2010 +0000
+++ b/file.c	Tue Jun 01 07:46:23 2010 +0000
@@ -64,7 +64,7 @@
     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);