[PATCH 1/2] [WineDbg]: removed unneeded variable from print_basic
Eric Pouech
eric.pouech at orange.fr
Fri May 23 13:04:55 CDT 2008
A+
---
programs/winedbg/debugger.h | 2 +-
programs/winedbg/memory.c | 2 +-
programs/winedbg/types.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/programs/winedbg/debugger.h b/programs/winedbg/debugger.h
index f95c3d1..d11e291 100644
--- a/programs/winedbg/debugger.h
+++ b/programs/winedbg/debugger.h
@@ -367,7 +367,7 @@ extern BOOL memory_disasm_one_insn(ADDRESS64* addr);
extern char* memory_offset_to_string(char *str, DWORD64 offset, unsigned mode);
extern void print_bare_address(const ADDRESS64* addr);
extern void print_address(const ADDRESS64* addr, BOOLEAN with_line);
-extern void print_basic(const struct dbg_lvalue* value, int count, char format);
+extern void print_basic(const struct dbg_lvalue* value, char format);
/* source.c */
extern void source_list(IMAGEHLP_LINE* src1, IMAGEHLP_LINE* src2, int delta);
diff --git a/programs/winedbg/memory.c b/programs/winedbg/memory.c
index 50fe3df..70ca4ca 100644
--- a/programs/winedbg/memory.c
+++ b/programs/winedbg/memory.c
@@ -464,7 +464,7 @@ static void print_typed_basic(const struct dbg_lvalue* lvalue)
*
* Implementation of the 'print' command.
*/
-void print_basic(const struct dbg_lvalue* lvalue, int count, char format)
+void print_basic(const struct dbg_lvalue* lvalue, char format)
{
if (lvalue->type.id == dbg_itype_none)
{
diff --git a/programs/winedbg/types.c b/programs/winedbg/types.c
index 06b7355..a5700fb 100644
--- a/programs/winedbg/types.c
+++ b/programs/winedbg/types.c
@@ -457,7 +457,7 @@ void print_value(const struct dbg_lvalue* lvalue, char format, int level)
/* FIXME: this in not 100% optimal (as we're going through the typedef handling
* stuff again
*/
- print_basic(lvalue, 1, format);
+ print_basic(lvalue, format);
break;
case SymTagUDT:
if (types_get_info(&type, TI_GET_CHILDRENCOUNT, &count))
More information about the wine-patches
mailing list