comparison tcp.c @ 6068:7fdda2416684 libavformat

Declare the url_write buffer parameter as const
author mstorsjo
date Tue, 01 Jun 2010 07:46:23 +0000
parents 395592984ef0
children 4fc5e0e4e1cd
comparison
equal deleted inserted replaced
6067:51ae348d4511 6068:7fdda2416684
152 return -1; 152 return -1;
153 } 153 }
154 } 154 }
155 } 155 }
156 156
157 static int tcp_write(URLContext *h, uint8_t *buf, int size) 157 static int tcp_write(URLContext *h, const uint8_t *buf, int size)
158 { 158 {
159 TCPContext *s = h->priv_data; 159 TCPContext *s = h->priv_data;
160 int ret, size1, fd_max, len; 160 int ret, size1, fd_max, len;
161 fd_set wfds; 161 fd_set wfds;
162 struct timeval tv; 162 struct timeval tv;