win-pvdrivers

changeset 1013:43e76afb2398

Fix compiler warnings under 2000
author James Harper <james.harper@bendigoit.com.au>
date Mon Feb 11 20:59:11 2013 +1100 (2013-02-11)
parents 9e076343bb8e
children fe3af8f4d54b
files xennet/xennet.c
line diff
     1.1 --- a/xennet/xennet.c	Mon Feb 11 17:28:26 2013 +1100
     1.2 +++ b/xennet/xennet.c	Mon Feb 11 20:59:11 2013 +1100
     1.3 @@ -186,7 +186,7 @@ XenNet_Initialize(NDIS_HANDLE adapter_ha
     1.4      xi->frontend_sg_supported = TRUE;
     1.5    } else {
     1.6      FUNCTION_MSG("ScatterGather = %d\n", config_param->ParameterData.IntegerData);
     1.7 -    xi->frontend_sg_supported = !!config_param->ParameterData.IntegerData;
     1.8 +    xi->frontend_sg_supported = (BOOLEAN)!!config_param->ParameterData.IntegerData;
     1.9    }
    1.10    if (xi->frontend_sg_supported && ndis_os_minor_version < 1) {
    1.11      FUNCTION_MSG("No support for SG with NDIS 6.0, disabled\n");
    1.12 @@ -242,7 +242,7 @@ XenNet_Initialize(NDIS_HANDLE adapter_ha
    1.13      xi->frontend_csum_supported = TRUE;
    1.14    } else {
    1.15      FUNCTION_MSG("ChecksumOffload = %d\n", config_param->ParameterData.IntegerData);
    1.16 -    xi->frontend_csum_supported = !!config_param->ParameterData.IntegerData;
    1.17 +    xi->frontend_csum_supported = (BOOLEAN)!!config_param->ParameterData.IntegerData;
    1.18    }
    1.19  
    1.20    NdisInitUnicodeString(&config_param_name, L"MTU");
    1.21 @@ -669,8 +669,8 @@ DriverEntry(PDRIVER_OBJECT driver_object
    1.22  
    1.23    ndis_version = NdisGetVersion();
    1.24    
    1.25 -  ndis_os_major_version = ndis_version >> 16;
    1.26 -  ndis_os_minor_version = ndis_version & 0xFFFF;
    1.27 +  ndis_os_major_version = (USHORT)(ndis_version >> 16);
    1.28 +  ndis_os_minor_version = (USHORT)(ndis_version & 0xFFFF);
    1.29  
    1.30    FUNCTION_MSG("Driver MajorNdisVersion = %d, Driver MinorNdisVersion = %d\n", NDIS_MINIPORT_MAJOR_VERSION, NDIS_MINIPORT_MINOR_VERSION);
    1.31    FUNCTION_MSG("Windows MajorNdisVersion = %d, Windows MinorNdisVersion = %d\n", ndis_os_major_version, ndis_os_minor_version);