netapi32: Cast-qual warnings fix

Andrew Talbot Andrew.Talbot at talbotville.com
Tue Sep 19 11:59:56 CDT 2006


Changelog:
    netapi32: Cast-qual warnings fix.

diff -urN a/dlls/netapi32/nbnamecache.c b/dlls/netapi32/nbnamecache.c
--- a/dlls/netapi32/nbnamecache.c	2006-09-12 23:59:41.000000000 +0100
+++ b/dlls/netapi32/nbnamecache.c	2006-09-19 17:44:02.000000000 +0100
@@ -163,7 +163,7 @@
         NBNameCacheNode **node;
 
         EnterCriticalSection(&cache->cs);
-        node = NBNameCacheWalk(cache, (char*)name);
+        node = NBNameCacheWalk(cache, (const char *)name);
         if (node)
             ret = (*node)->entry;
         else
@@ -185,7 +185,7 @@
         NBNameCacheNode **node;
 
         EnterCriticalSection(&cache->cs);
-        node = NBNameCacheWalk(cache, (char*)name);
+        node = NBNameCacheWalk(cache, (const char *)name);
         if (node && *node && (*node)->entry)
         {
             memcpy((*node)->entry->nbname, nbname, NCBNAMSZ);



More information about the wine-patches mailing list