Huw Davies : mountmgr: Fix long type warnings on macOS.

Alexandre Julliard julliard at winehq.org
Fri Mar 25 15:28:08 CDT 2022


Module: wine
Branch: master
Commit: 1c04073772254fa452f90aa27ea9945b53a49ad9
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=1c04073772254fa452f90aa27ea9945b53a49ad9

Author: Huw Davies <huw at codeweavers.com>
Date:   Fri Mar 25 12:13:10 2022 +0000

mountmgr: Fix long type warnings on macOS.

Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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;
     }
 




More information about the wine-cvs mailing list