Andrew Talbot : dbghelp: Constify some variables.

Alexandre Julliard julliard at winehq.org
Tue Aug 23 12:45:02 CDT 2011


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

Author: Andrew Talbot <andrew.talbot at talbotville.com>
Date:   Mon Aug 22 20:31:39 2011 +0100

dbghelp: Constify some variables.

---

 dlls/dbghelp/stabs.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/dbghelp/stabs.c b/dlls/dbghelp/stabs.c
index 3f28009..1bdd706 100644
--- a/dlls/dbghelp/stabs.c
+++ b/dlls/dbghelp/stabs.c
@@ -583,7 +583,7 @@ static int stabs_pts_read_range(struct ParseTypedefData* ptd, const char* typena
 static inline int stabs_pts_read_method_info(struct ParseTypedefData* ptd)
 {
     struct symt*        dt;
-    char*               tmp;
+    const char*         tmp;
     char                mthd;
 
     do
@@ -740,7 +740,7 @@ static inline int stabs_pts_read_aggregate(struct ParseTypedefData* ptd,
             break;
         case ':':
             {
-                char* tmp;
+                const char* tmp;
                 /* method parameters... terminated by ';' */
                 PTS_ABORTIF(ptd, !(tmp = strchr(ptd->ptr, ';')));
                 ptd->ptr = tmp + 1;




More information about the wine-cvs mailing list