winedos: Do not cast NULL.

Michael Stefaniuc mstefani at redhat.de
Sat Nov 1 18:21:38 CDT 2008


---
 dlls/winedos/devices.c |    2 +-
 dlls/winedos/ppdev.c   |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/winedos/devices.c b/dlls/winedos/devices.c
index 6246cf9..0ee6f6c 100644
--- a/dlls/winedos/devices.c
+++ b/dlls/winedos/devices.c
@@ -187,7 +187,7 @@ static void WINAPI con_interrupt(CONTEXT86*ctx)
   DOS_DATASEG *dataseg = (DOS_DATASEG *)lol;
   BYTE *linebuffer = dataseg->buffer;
   BYTE *curbuffer = (lol->offs_unread_CON) ?
-    (((BYTE*)dataseg) + lol->offs_unread_CON) : (BYTE*)NULL;
+    (((BYTE*)dataseg) + lol->offs_unread_CON) : NULL;
   DOS_DEVICE_HEADER *con = dataseg->dev;
   DWORD w;
 
diff --git a/dlls/winedos/ppdev.c b/dlls/winedos/ppdev.c
index 8c83f38..0c74ae6 100644
--- a/dlls/winedos/ppdev.c
+++ b/dlls/winedos/ppdev.c
@@ -139,7 +139,7 @@ char IO_pp_init(void)
 	      ERR("Is the ppdev module loaded?\n");
 	    continue;
 	  }
-	userbase = strtol(name,(char **)NULL, 16);
+        userbase = strtol(name, NULL, 16);
 	if ( errno == ERANGE)
 	  {
 	    WARN("Configuration: Invalid base %s for %s\n",name,buffer);
@@ -193,7 +193,7 @@ char IO_pp_init(void)
 	PPDeviceList[nports].lastaccess=GetTickCount();
 	if (timeout)
 	  {
-	    PPDeviceList[nports].timeout = strtol(timeout,(char **)NULL, 10);
+            PPDeviceList[nports].timeout = strtol(timeout, NULL, 10);
 	    if (errno == ERANGE)
 	      {
 		WARN("Configuration: Invalid timeout %s in configuration for %s, Setting to 0\n",
-- 
1.6.0.3
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20081102/5077ce2b/attachment.pgp 


More information about the wine-patches mailing list