win-pvdrivers

changeset 1034:aa7329b5211b

fix warnings
author James Harper <james.harper@bendigoit.com.au>
date Sun Mar 03 13:50:23 2013 +1100 (2013-03-03)
parents cb767700f91c
children b3de9dba6fee
files xenusb/xenusb_fdo.c
line diff
     1.1 --- a/xenusb/xenusb_fdo.c	Sun Mar 03 13:49:54 2013 +1100
     1.2 +++ b/xenusb/xenusb_fdo.c	Sun Mar 03 13:50:23 2013 +1100
     1.3 @@ -30,9 +30,11 @@ static EVT_WDF_IO_QUEUE_IO_INTERNAL_DEVI
     1.4  static EVT_WDF_IO_QUEUE_IO_INTERNAL_DEVICE_CONTROL XenUsb_EvtIoInternalDeviceControl_PVURB;
     1.5  static EVT_WDF_IO_QUEUE_IO_DEFAULT XenUsb_EvtIoDefault;
     1.6  static EVT_WDF_REQUEST_CANCEL XenUsb_EvtRequestCancelPvUrb;
     1.7 -
     1.8  static NTSTATUS XenUsb_Connect(PVOID context, BOOLEAN suspend);
     1.9  static NTSTATUS XenUsb_Disconnect(PVOID context, BOOLEAN suspend);
    1.10 +#if (VER_PRODUCTBUILD >= 7600)
    1.11 +static KDEFERRED_ROUTINE XenUsb_HandleEventDpc;
    1.12 +#endif
    1.13  
    1.14  static NTSTATUS
    1.15  XenUsb_EvtDeviceWdmIrpPreprocessQUERY_INTERFACE(WDFDEVICE device, PIRP irp)
    1.16 @@ -109,7 +111,7 @@ PutRequestsOnRing(PXENUSB_DEVICE_DATA xu
    1.17    FUNCTION_EXIT();
    1.18  }
    1.19  
    1.20 -static BOOLEAN
    1.21 +static VOID
    1.22  XenUsb_HandleEventDpc(PKDPC dpc, PVOID context, PVOID arg1, PVOID arg2) {
    1.23    NTSTATUS status;
    1.24    PXENUSB_DEVICE_DATA xudd = context;
    1.25 @@ -277,7 +279,7 @@ XenUsb_HandleEventDpc(PKDPC dpc, PVOID c
    1.26        
    1.27    FUNCTION_EXIT();
    1.28  
    1.29 -  return TRUE;
    1.30 +  return;
    1.31  }
    1.32  
    1.33  static BOOLEAN
    1.34 @@ -425,7 +427,7 @@ XenUsb_Connect(PVOID context, BOOLEAN su
    1.35    NTSTATUS status;
    1.36    PXENUSB_DEVICE_DATA xudd = context;
    1.37    PFN_NUMBER pfn;
    1.38 -  int i;
    1.39 +  ULONG i;
    1.40  
    1.41    if (!suspend) {
    1.42      xudd->handle = XnOpenDevice(xudd->pdo, XenUsb_DeviceCallback, xudd);