Andrew Talbot : dbghelp: Cast-qual warnings fix.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Oct 19 07:19:16 CDT 2006


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

Author: Andrew Talbot <Andrew.Talbot at talbotville.com>
Date:   Wed Oct 18 22:04:43 2006 +0100

dbghelp: Cast-qual warnings fix.

---

 dlls/dbghelp/stabs.c |   21 +++++++++++++--------
 1 files changed, 13 insertions(+), 8 deletions(-)

diff --git a/dlls/dbghelp/stabs.c b/dlls/dbghelp/stabs.c
index 57aa82f..e8fec4b 100644
--- a/dlls/dbghelp/stabs.c
+++ b/dlls/dbghelp/stabs.c
@@ -278,20 +278,25 @@ static struct symt** stabs_find_ref(long
 static struct symt** stabs_read_type_enum(const char** x)
 {
     long        filenr, subnr;
+    const char* iter;
+    char*       end;
 
-    if (**x == '(') 
+    iter = *x;
+    if (*iter == '(')
     {
-	(*x)++;					/* '('   */
-	filenr = strtol(*x, (char**)x, 10);	/* <int> */
-	(*x)++;					/* ','   */
-	subnr = strtol(*x, (char**)x, 10);	/* <int> */
-	(*x)++;					/* ')'   */
+        ++iter;                             /* '('   */
+        filenr = strtol(iter, &end, 10);    /* <int> */
+        iter = ++end;                       /* ','   */
+        subnr = strtol(iter, &end, 10);     /* <int> */
+        iter = ++end;                       /* ')'   */
     }
     else
     {
-    	filenr = 0;
-	subnr = strtol(*x, (char**)x, 10);      /* <int> */
+        filenr = 0;
+        subnr = strtol(iter, &end, 10);     /* <int> */
+        iter = end;
     }
+    *x = iter;
     return stabs_find_ref(filenr, subnr);
 }
 




More information about the wine-cvs mailing list