win-pvdrivers

changeset 817:678c7d92321c

Minor cosmetic/compliance changes
author James Harper <james.harper@bendigoit.com.au>
date Sun Oct 10 10:33:11 2010 +1100 (2010-10-10)
parents 4d1539643494
children 4e6f162a054c
files xennet/xennet.c
line diff
     1.1 --- a/xennet/xennet.c	Sun Oct 10 10:29:29 2010 +1100
     1.2 +++ b/xennet/xennet.c	Sun Oct 10 10:33:11 2010 +1100
     1.3 @@ -27,6 +27,8 @@ DRIVER_INITIALIZE DriverEntry;
     1.4  static IO_WORKITEM_ROUTINE XenNet_Resume;
     1.5  static KDEFERRED_ROUTINE XenNet_SuspendResume;
     1.6  
     1.7 +#pragma NDIS_INIT_FUNCTION(DriverEntry)
     1.8 +
     1.9  /* ----- BEGIN Other people's code --------- */
    1.10  /* from linux/include/linux/ctype.h, used under GPLv2 */
    1.11  #define _U      0x01    /* upper */
    1.12 @@ -916,20 +918,21 @@ XenNet_Reset(
    1.13    return NDIS_STATUS_SUCCESS;
    1.14  }
    1.15  
    1.16 -NTSTATUS DDKAPI
    1.17 +NTSTATUS
    1.18  DriverEntry(
    1.19    PDRIVER_OBJECT DriverObject,
    1.20    PUNICODE_STRING RegistryPath
    1.21    )
    1.22  {
    1.23 -  NTSTATUS status;
    1.24 +  NTSTATUS status;  
    1.25    NDIS_HANDLE ndis_wrapper_handle = NULL;
    1.26    NDIS_MINIPORT_CHARACTERISTICS mini_chars;
    1.27  
    1.28    FUNCTION_ENTER();
    1.29  
    1.30    KdPrint((__DRIVER_NAME "     DriverObject = %p, RegistryPath = %p\n", DriverObject, RegistryPath));
    1.31 -  RtlZeroMemory(&mini_chars, sizeof(mini_chars));
    1.32 +  
    1.33 +  NdisZeroMemory(&mini_chars, sizeof(mini_chars));
    1.34  
    1.35    KdPrint((__DRIVER_NAME "     NdisGetVersion = %x\n", NdisGetVersion()));
    1.36  
    1.37 @@ -984,4 +987,4 @@ DriverEntry(
    1.38    FUNCTION_EXIT();
    1.39  
    1.40    return status;
    1.41 -}
    1.42 +}
    1.43 \ No newline at end of file