[libdvdcss-devel] libdvdcss: Drop unnecessary void* pointer casts

Diego Biurrun git at videolan.org
Fri Oct 31 11:43:44 CET 2014


libdvdcss | branch: master | Diego Biurrun <diego at biurrun.de> | Sat Oct 25 03:00:05 2014 +0200| [3c3fb43d6e7b925339b8172163ce4a0d4fd430da] | committer: Diego Biurrun

libdvdcss: Drop unnecessary void* pointer casts

> http://git.videolan.org/gitweb.cgi/libdvdcss.git/?a=commit;h=3c3fb43d6e7b925339b8172163ce4a0d4fd430da
---

 src/libdvdcss.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/libdvdcss.c b/src/libdvdcss.c
index 5abe83c..a48a6ff 100644
--- a/src/libdvdcss.c
+++ b/src/libdvdcss.c
@@ -681,7 +681,7 @@ LIBDVDCSS_EXPORT int dvdcss_readv ( dvdcss_t dvdcss, void *p_iovec,
                                            int i_blocks,
                                            int i_flags )
 {
-    struct iovec *_p_iovec = (struct iovec *)p_iovec;
+    struct iovec *_p_iovec = p_iovec;
     int i_ret, i_index;
     void *iov_base;
     size_t iov_len;
@@ -718,7 +718,7 @@ LIBDVDCSS_EXPORT int dvdcss_readv ( dvdcss_t dvdcss, void *p_iovec,
         dvdcss_unscramble( dvdcss->css.p_title_key, iov_base );
         ((uint8_t*)iov_base)[0x14] &= 0x8f;
 
-        iov_base = (void *) ((uint8_t*)iov_base + DVDCSS_BLOCK_SIZE);
+        iov_base = (uint8_t*)iov_base + DVDCSS_BLOCK_SIZE;
         iov_len -= DVDCSS_BLOCK_SIZE;
     }
 



More information about the libdvdcss-devel mailing list