Andrew Talbot : dbghelp: Constify some variables.

Alexandre Julliard julliard at winehq.org
Mon Aug 30 13:00:44 CDT 2010


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

Author: Andrew Talbot <andrew.talbot at talbotville.com>
Date:   Sat Aug 28 16:43:10 2010 +0100

dbghelp: Constify some variables.

---

 dlls/dbghelp/dwarf.c         |    4 ++--
 dlls/dbghelp/image_private.h |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/dbghelp/dwarf.c b/dlls/dbghelp/dwarf.c
index d67c72a..913b0c1 100644
--- a/dlls/dbghelp/dwarf.c
+++ b/dlls/dbghelp/dwarf.c
@@ -2796,7 +2796,7 @@ static void copy_context_reg(CONTEXT *dstcontext, ULONG_PTR dwregdst, CONTEXT* s
     memcpy(ptrdst, ptrsrc, szdst);
 }
 
-static ULONG_PTR eval_expression(struct module* module, struct cpu_stack_walk* csw,
+static ULONG_PTR eval_expression(const struct module* module, struct cpu_stack_walk* csw,
                                  const unsigned char* zp, CONTEXT *context)
 {
     dwarf2_traverse_context_t    ctx;
@@ -2907,7 +2907,7 @@ static ULONG_PTR eval_expression(struct module* module, struct cpu_stack_walk* c
     return stack[sp];
 }
 
-static void apply_frame_state(struct module* module, struct cpu_stack_walk* csw,
+static void apply_frame_state(const struct module* module, struct cpu_stack_walk* csw,
                               CONTEXT *context, struct frame_state *state, ULONG_PTR* cfa)
 {
     unsigned int i;
diff --git a/dlls/dbghelp/image_private.h b/dlls/dbghelp/image_private.h
index b768deb..808f6a1 100644
--- a/dlls/dbghelp/image_private.h
+++ b/dlls/dbghelp/image_private.h
@@ -159,7 +159,7 @@ static inline void image_unmap_section(struct image_section_map* ism)
     }
 }
 
-static inline DWORD_PTR image_get_map_rva(struct image_section_map* ism)
+static inline DWORD_PTR image_get_map_rva(const struct image_section_map* ism)
 {
     if (!ism->fmap) return 0;
     switch (ism->fmap->modtype)
@@ -170,7 +170,7 @@ static inline DWORD_PTR image_get_map_rva(struct image_section_map* ism)
     }
 }
 
-static inline unsigned image_get_map_size(struct image_section_map* ism)
+static inline unsigned image_get_map_size(const struct image_section_map* ism)
 {
     if (!ism->fmap) return 0;
     switch (ism->fmap->modtype)




More information about the wine-cvs mailing list