[PATCH] mountmgr: Fix long type warnings on macOS.

Huw Davies huw at codeweavers.com
Fri Mar 25 07:13:10 CDT 2022


Signed-off-by: Huw Davies <huw at codeweavers.com>
---
 dlls/mountmgr.sys/diskarb.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/mountmgr.sys/diskarb.c b/dlls/mountmgr.sys/diskarb.c
index 50a32bef079..462ff82c691 100644
--- a/dlls/mountmgr.sys/diskarb.c
+++ b/dlls/mountmgr.sys/diskarb.c
@@ -229,7 +229,7 @@ void run_diskarbitration_loop(void)
 
 #if defined(HAVE_SYSTEMCONFIGURATION_SCDYNAMICSTORECOPYDHCPINFO_H) && defined(HAVE_SYSTEMCONFIGURATION_SCNETWORKCONFIGURATION_H)
 
-static UInt8 map_option( ULONG option )
+static UInt8 map_option( unsigned int option )
 {
     switch (option)
     {
@@ -314,7 +314,7 @@ NTSTATUS dhcp_request( void *args )
     case OPTION_ROUTER_ADDRESS:
     case OPTION_BROADCAST_ADDRESS:
     {
-        DWORD *ptr = (DWORD *)(params->buffer + params->offset);
+        unsigned int *ptr = (unsigned int *)(params->buffer + params->offset);
         if (len == sizeof(*ptr) && params->size >= sizeof(*ptr))
         {
             CFDataGetBytes( value, CFRangeMake(0, len), (UInt8 *)ptr );
@@ -341,7 +341,7 @@ NTSTATUS dhcp_request( void *args )
         break;
     }
     default:
-        FIXME( "option %u not supported\n", params->req->id );
+        FIXME( "option %u not supported\n", (unsigned int)params->req->id );
         break;
     }
 
-- 
2.23.0




More information about the wine-devel mailing list