[vlc-commits] SFTP: use the correct variable types
Jean-Baptiste Kempf
git at videolan.org
Thu Sep 10 14:02:57 CEST 2015
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Sep 10 14:02:43 2015 +0200| [8eb1349b0d0bc2ac4e15d879a4c96e36234bc56c] | committer: Jean-Baptiste Kempf
SFTP: use the correct variable types
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8eb1349b0d0bc2ac4e15d879a4c96e36234bc56c
---
modules/access/sftp.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/access/sftp.c b/modules/access/sftp.c
index a1b0a57..a8dde26 100644
--- a/modules/access/sftp.c
+++ b/modules/access/sftp.c
@@ -76,7 +76,7 @@ vlc_module_end ()
/*****************************************************************************
* Local prototypes
*****************************************************************************/
-static ssize_t Read( access_t *, void *, size_t );
+static ssize_t Read( access_t *, uint8_t *, size_t );
static int Seek( access_t *, uint64_t );
static int Control( access_t *, int, va_list );
@@ -351,14 +351,14 @@ static void Close( vlc_object_t* p_this )
}
-static ssize_t Read( access_t *p_access, void *buf, size_t len )
+static ssize_t Read( access_t *p_access, uint8_t *buf, size_t len )
{
access_sys_t *p_sys = p_access->p_sys;
if( p_access->info.b_eof )
return NULL;
- ssize_t val = libssh2_sftp_read( p_sys->file, buf, len );
+ ssize_t val = libssh2_sftp_read( p_sys->file, (char *)buf, len );
if( val < 0 )
{
p_access->info.b_eof = true;
More information about the vlc-commits
mailing list