ref: f8828ee5e7089a65551261d9482ece71c91bdf46
parent: 2afa6f86a3ab9e8ac3f387944f8d1562c5b194c6
author: Diego Biurrun <[email protected]>
date: Sat Nov 1 12:32:05 EDT 2014
ioctl: Drop const from pi_agid argument in ioctl_InvalidateAgid() Under Windows the parameter is passed on to DeviceIoControl() as a non-const parameter.
--- a/src/ioctl.c
+++ b/src/ioctl.c
@@ -901,7 +901,7 @@
/*****************************************************************************
* 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;
--- a/src/ioctl.h
+++ b/src/ioctl.h
@@ -32,7 +32,7 @@
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 * );