From 4e4948cfbfd4b7a47bba8dcb678ed7b1a198b735 Mon Sep 17 00:00:00 2001 From: Andrew Talbot Date: Sat, 28 Aug 2010 16:43:10 +0100 Subject: [PATCH] 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 d67c72a9ee9..913b0c1bd6b 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 b768deb91e3..808f6a1b6f7 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) -- 2.11.4.GIT