aboutsummaryrefslogtreecommitdiffstats
path: root/src/inputStream_http.c
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2008-08-30 17:33:07 -0700
committerEric Wong <normalperson@yhbt.net>2008-08-30 17:33:07 -0700
commita848893d85cd027d831ba0ecae9dacef0a5f0605 (patch)
tree0090036a5036ab3d7f8dce1cd35477536253e46d /src/inputStream_http.c
parentaa2fcfa7574ebdf3e348c051e496797841aa4f1d (diff)
downloadmpd-a848893d85cd027d831ba0ecae9dacef0a5f0605.tar.gz
mpd-a848893d85cd027d831ba0ecae9dacef0a5f0605.tar.xz
mpd-a848893d85cd027d831ba0ecae9dacef0a5f0605.zip
ringbuf: create a new struct rbvec instead of reusing struct iovec
Using struct iovec means having to cast iov_base everywhere we want to do pointer arithmetic. Instead, just use rbvec which can be safely casted to iovec whenever we use the readv/writev functions.
Diffstat (limited to '')
-rw-r--r--src/inputStream_http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inputStream_http.c b/src/inputStream_http.c
index a6c715459..cc31ed435 100644
--- a/src/inputStream_http.c
+++ b/src/inputStream_http.c
@@ -461,7 +461,7 @@ static ssize_t buffer_data(InputStream *is)
assert(pthread_equal(data->io_thread, pthread_self()));
assert_state2(CONN_STATE_BUFFER, CONN_STATE_PREBUFFER);
- if (!ringbuf_get_write_vector(data->rb, vec)) {
+ if (!ringbuf_get_write_vector(data->rb, (struct rbvec *)vec)) {
data->state = CONN_STATE_BUFFER_FULL;
return 0;
}