Michael Stefaniuc : eject: Win64 printf format warning fixes.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Oct 3 05:18:26 CDT 2006


Module: wine
Branch: master
Commit: fe23cd26df2c0b0f9936ee6aa46fc6e26f2e9ba7
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=fe23cd26df2c0b0f9936ee6aa46fc6e26f2e9ba7

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Mon Oct  2 23:21:17 2006 +0200

eject: Win64 printf format warning fixes.

---

 programs/eject/Makefile.in |    1 -
 programs/eject/eject.c     |    6 +++---
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/programs/eject/Makefile.in b/programs/eject/Makefile.in
index a0ea47c..d4f1b00 100644
--- a/programs/eject/Makefile.in
+++ b/programs/eject/Makefile.in
@@ -5,7 +5,6 @@ VPATH     = @srcdir@
 MODULE    = eject.exe
 APPMODE   = -mconsole
 IMPORTS   = kernel32
-EXTRADEFS = -DWINE_NO_LONG_AS_INT
 
 C_SRCS = eject.c
 
diff --git a/programs/eject/eject.c b/programs/eject/eject.c
index cd5fd42..02ff4ba 100644
--- a/programs/eject/eject.c
+++ b/programs/eject/eject.c
@@ -74,16 +74,16 @@ static BOOL eject_cd( WCHAR drive )
     WINE_TRACE( "ejecting %c:\n", (char)drive );
 
     if (!DeviceIoControl( handle, FSCTL_DISMOUNT_VOLUME, NULL, 0, NULL, 0, &result, NULL ))
-        WINE_WARN( "FSCTL_DISMOUNT_VOLUME failed with err %ld\n", GetLastError() );
+        WINE_WARN( "FSCTL_DISMOUNT_VOLUME failed with err %d\n", GetLastError() );
 
     removal.PreventMediaRemoval = FALSE;
     if (!DeviceIoControl( handle, IOCTL_STORAGE_MEDIA_REMOVAL, &removal, sizeof(removal), NULL, 0, &result, NULL ))
-        WINE_WARN( "IOCTL_STORAGE_MEDIA_REMOVAL failed with err %ld\n", GetLastError() );
+        WINE_WARN( "IOCTL_STORAGE_MEDIA_REMOVAL failed with err %d\n", GetLastError() );
 
     if (!unmount_only)
     {
         if (!DeviceIoControl( handle, IOCTL_STORAGE_EJECT_MEDIA, NULL, 0, NULL, 0, &result, NULL ))
-            WINE_WARN( "IOCTL_STORAGE_EJECT_MEDIA failed with err %ld\n", GetLastError() );
+            WINE_WARN( "IOCTL_STORAGE_EJECT_MEDIA failed with err %d\n", GetLastError() );
     }
 
     CloseHandle( handle );




More information about the wine-cvs mailing list