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

Alexandre Julliard julliard at winehq.org
Wed Jan 21 06:39:32 CST 2009


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

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Wed Jan 21 09:34:48 2009 +0100

winenas.drv: Remove superfluous pointer casts.

---

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

diff --git a/dlls/winenas.drv/audio.c b/dlls/winenas.drv/audio.c
index 51092a8..f418315 100644
--- a/dlls/winenas.drv/audio.c
+++ b/dlls/winenas.drv/audio.c
@@ -334,8 +334,8 @@ static DWORD bytes_to_mmtime(LPMMTIME lpTime, DWORD position,
 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;
 
 /*
@@ -360,8 +360,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)
 {
-  char *d_out = (char *)bufout;
-  char *d_in = (char *)bufin;
+  char *d_out = bufout;
+  char *d_in = bufin;
   int i, v;
 
 /*
@@ -841,8 +841,8 @@ static void wodPlayer_ProcessMessages(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];
 
     wwo->state = WINE_WS_STOPPED;
     SetEvent(wwo->hStartUpEvent);
@@ -1337,7 +1337,7 @@ static int nas_open(WINE_WAVEOUT* wwo) {
 static AuBool
 event_handler(AuServer* aud, AuEvent* ev, AuEventHandlerRec* hnd)
 {
-  WINE_WAVEOUT *wwo = (WINE_WAVEOUT *)hnd->data;
+  WINE_WAVEOUT *wwo = hnd->data;
         switch (ev->type) {
 
         case AuEventTypeElementNotify: {




More information about the wine-cvs mailing list