[libdvdcss-devel] ioctl: Drop const from pi_agid argument in ioctl_InvalidateAgid()

[email protected] (Diego Biurrun)
Newsgroups gmane.comp.video.videolan.libdvdcss,gmane.comp.video.videolan.libdvdcss.devel
Message-ID <[email protected]>
libdvdcss | branch: master | Diego Biurrun <[email protected]> | Sat Nov  1 16:32:05 2014 +0100| [f8828ee5e7089a65551261d9482ece71c91bdf46] | committer: Diego Biurrun

ioctl: Drop const from pi_agid argument in ioctl_InvalidateAgid()

Under Windows the parameter is passed on to DeviceIoControl()
as a non-const parameter.

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

 src/ioctl.c |    2 +-
 src/ioctl.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/ioctl.c b/src/ioctl.c
index d75e6e8..a52a5b3 100644
--- a/src/ioctl.c
+++ b/src/ioctl.c
@@ -901,7 +901,7 @@ int ioctl_ReportKey1( int i_fd, const int *pi_agid, uint8_t *p_key )
 /*****************************************************************************
  * ioctl_InvalidateAgid: invalidate the current AGID
  *****************************************************************************/
-int ioctl_InvalidateAgid( int i_fd, const int *pi_agid )
+int ioctl_InvalidateAgid( int i_fd, int *pi_agid )
 {
     int i_ret;
 
diff --git a/src/ioctl.h b/src/ioctl.h
index e813251..60d7868 100644
--- a/src/ioctl.h
+++ b/src/ioctl.h
@@ -32,7 +32,7 @@ int ioctl_ReportAgid        ( int, int * );
 int ioctl_ReportChallenge   ( int, const int *, uint8_t * );
 int ioctl_ReportKey1        ( int, const int *, uint8_t * );
 int ioctl_ReportASF         ( int, int * );
-int ioctl_InvalidateAgid    ( int, const int * );
+int ioctl_InvalidateAgid    ( int, int * );
 int ioctl_SendChallenge     ( int, const int *, const uint8_t * );
 int ioctl_SendKey2          ( int, const int *, const uint8_t * );
 int ioctl_ReportRPC         ( int, int *, int *, int * );

_______________________________________________
libdvdcss-devel mailing list
[email protected]
https://mailman.videolan.org/listinfo/libdvdcss-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.