Michael Stefaniuc : wineesd.drv: Remove superfluous pointer casts.

Alexandre Julliard julliard at winehq.org
Tue Feb 10 07:45:27 CST 2009


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

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Tue Feb 10 10:03:22 2009 +0100

wineesd.drv: Remove superfluous pointer casts.

---

 dlls/wineesd.drv/audio.c |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/dlls/wineesd.drv/audio.c b/dlls/wineesd.drv/audio.c
index e59b711..9bcc3b0 100644
--- a/dlls/wineesd.drv/audio.c
+++ b/dlls/wineesd.drv/audio.c
@@ -244,8 +244,8 @@ static const char *wodPlayerCmdString[] = {
 static void volume_effect16(void *bufin, void* bufout, int length, int left,
 		int right, int 	nChannels)
 {
-  short *d_out = (short *)bufout;
-  short *d_in = (short *)bufin;
+  short *d_out = bufout;
+  short *d_in = bufin;
   int i, v;
 
 /*
@@ -270,8 +270,8 @@ static void volume_effect16(void *bufin, void* bufout, int length, int left,
 static void volume_effect8(void *bufin, void* bufout, int length, int left,
 		int right, int 	nChannels)
 {
-  BYTE *d_out = (BYTE *)bufout;
-  BYTE *d_in = (BYTE *)bufin;
+  BYTE *d_out = bufout;
+  BYTE *d_in = bufin;
   int i, v;
 
 /*
@@ -1133,8 +1133,8 @@ static DWORD wodPlayer_FeedDSP(WINE_WAVEOUT* wwo)
  */
 static	DWORD	CALLBACK	wodPlayer(LPVOID pmt)
 {
-    WORD	  uDevID = (DWORD)pmt;
-    WINE_WAVEOUT* wwo = (WINE_WAVEOUT*)&WOutDev[uDevID];
+    WORD          uDevID = (DWORD)pmt;
+    WINE_WAVEOUT* wwo = &WOutDev[uDevID];
     DWORD         dwNextFeedTime = INFINITE;   /* Time before DSP needs feeding */
     DWORD         dwNextNotifyTime = INFINITE; /* Time before next wave completion */
     DWORD         dwSleepTime;
@@ -1679,7 +1679,7 @@ static DWORD widGetDevCaps(WORD wDevID, LPWAVEINCAPSW lpCaps, DWORD dwSize)
 static	DWORD	CALLBACK	widRecorder(LPVOID pmt)
 {
     WORD		uDevID = (DWORD)pmt;
-    WINE_WAVEIN*	wwi = (WINE_WAVEIN*)&WInDev[uDevID];
+    WINE_WAVEIN*        wwi = &WInDev[uDevID];
     WAVEHDR*		lpWaveHdr;
     DWORD		dwSleepTime;
     int			bytesRead;




More information about the wine-cvs mailing list