diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2014-04-05 19:56:28 +0100 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2014-04-05 20:26:40 +0100 |
commit | 975a1d3c5db0dc11a4f5ada68d5d424850858161 (patch) | |
tree | 90c96abadaa01ce463edbbd7800a639b6ede62e0 /amiga/arexx.c | |
parent | c1a32d7c6e87f3d81fa095e7e7fe11fa8d88fe5f (diff) | |
download | netsurf-975a1d3c5db0dc11a4f5ada68d5d424850858161.tar.gz netsurf-975a1d3c5db0dc11a4f5ada68d5d424850858161.tar.bz2 |
Fix cppcheck variableScope warnings
Diffstat (limited to 'amiga/arexx.c')
-rw-r--r-- | amiga/arexx.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/amiga/arexx.c b/amiga/arexx.c index 7fc58ef97..3bac0c249 100644 --- a/amiga/arexx.c +++ b/amiga/arexx.c @@ -196,11 +196,12 @@ int ami_find_tab_bw(struct gui_window_2 *gwin, struct browser_window *bw) struct browser_window *ami_find_tab(int window, int tab) { - int windows = 0; struct nsObject *node, *nnode; if(!IsMinListEmpty(window_list)) { + int windows = 0; + node = (struct nsObject *)GetHead((struct List *)window_list); do @@ -568,7 +569,6 @@ STATIC VOID rx_windows(struct ARexxCmd *cmd, struct RexxMsg *rxm __attribute__(( STATIC VOID rx_active(struct ARexxCmd *cmd, struct RexxMsg *rxm __attribute__((unused))) { - int windows = 0; int window = 0, tab = 0; struct browser_window *bw = curbw; struct nsObject *node, *nnode; @@ -578,6 +578,8 @@ STATIC VOID rx_active(struct ARexxCmd *cmd, struct RexxMsg *rxm __attribute__((u if(!IsMinListEmpty(window_list)) { + int windows = 0; + node = (struct nsObject *)GetHead((struct List *)window_list); do |