From d3479018db4c8d61b2dca497a547615f02c2a42d Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 7 Nov 2019 15:28:50 +0100 Subject: stream: change buffer argument types from char* to void* This is slightly better, although not much, and ultimately doesn't matter. The public API in stream_cb.h also uses char*, but can't change that. --- stream/stream_smb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'stream/stream_smb.c') diff --git a/stream/stream_smb.c b/stream/stream_smb.c index 630da0f757..bc1c00a8ef 100644 --- a/stream/stream_smb.c +++ b/stream/stream_smb.c @@ -75,7 +75,7 @@ static int seek(stream_t *s,int64_t newpos) { return 1; } -static int fill_buffer(stream_t *s, char* buffer, int max_len){ +static int fill_buffer(stream_t *s, void *buffer, int max_len){ struct priv *p = s->priv; pthread_mutex_lock(&smb_lock); int r = smbc_read(p->fd,buffer,max_len); @@ -83,7 +83,7 @@ static int fill_buffer(stream_t *s, char* buffer, int max_len){ return (r <= 0) ? -1 : r; } -static int write_buffer(stream_t *s, char* buffer, int len) { +static int write_buffer(stream_t *s, void *buffer, int len) { struct priv *p = s->priv; int wr; pthread_mutex_lock(&smb_lock); -- cgit v1.2.3