Module: wine Branch: master Commit: b15bcddeac3bf5035aca7dba338f1db0300629ff URL: http://source.winehq.org/git/wine.git/?a=commit;h=b15bcddeac3bf5035aca7dba33...
Author: Gerald Pfeifer gerald@pfeifer.com Date: Mon Jul 21 21:19:07 2008 +0200
winedbg: Fix the type of four loop variables and reduce scope of one.
---
programs/winedbg/display.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/programs/winedbg/display.c b/programs/winedbg/display.c index a1fa89e..0901961 100644 --- a/programs/winedbg/display.c +++ b/programs/winedbg/display.c @@ -56,7 +56,7 @@ static inline BOOL cmp_symbol(const SYMBOL_INFO* si1, const SYMBOL_INFO* si2)
int display_add(struct expr *exp, int count, char format) { - int i; + unsigned i; BOOL local_binding = FALSE;
for (i = 0; i < ndisplays; i++) @@ -98,7 +98,7 @@ int display_add(struct expr *exp, int count, char format)
int display_info(void) { - int i; + unsigned i; char buffer[sizeof(SYMBOL_INFO) + 256]; SYMBOL_INFO* func; const char* info; @@ -163,7 +163,7 @@ static void print_one_display(int i)
int display_print(void) { - int i; + unsigned i; char buffer[sizeof(SYMBOL_INFO) + 256]; SYMBOL_INFO* func;
@@ -187,8 +187,6 @@ int display_print(void)
int display_delete(int displaynum) { - int i; - if (displaynum > ndisplays || displaynum == 0 || displaynum < -1 || displaypoints[displaynum - 1].exp == NULL) { @@ -198,6 +196,8 @@ int display_delete(int displaynum)
if (displaynum == -1) { + unsigned i; + for (i = 0; i < ndisplays; i++) { if (displaypoints[i].exp != NULL)