Gitweb links:
...log
http://git.netsurf-browser.org/netsurf.git/shortlog/704e5cc839b5baa02fba5...
...commit
http://git.netsurf-browser.org/netsurf.git/commit/704e5cc839b5baa02fba5e1...
...tree
http://git.netsurf-browser.org/netsurf.git/tree/704e5cc839b5baa02fba5e1ce...
The branch, master has been updated
via 704e5cc839b5baa02fba5e1ceba3d37aa2f37bb8 (commit)
from bd85c009d3359f85ed5dd8211d797707b29af9cb (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commitdiff
http://git.netsurf-browser.org/netsurf.git/commit/?id=704e5cc839b5baa02fb...
commit 704e5cc839b5baa02fba5e1ceba3d37aa2f37bb8
Author: Chris Young <chris(a)unsatisfactorysoftware.co.uk>
Commit: Chris Young <chris(a)unsatisfactorysoftware.co.uk>
Use a for loop instead
diff --git a/amiga/menu.c b/amiga/menu.c
index 9d47cbd..de4d63e 100644
--- a/amiga/menu.c
+++ b/amiga/menu.c
@@ -318,7 +318,8 @@ void ami_menu_refresh(struct gui_window_2 *gwin)
static void ami_menu_load_glyphs(struct DrawInfo *dri)
{
- while(i < NSA_GLYPH_MAX) menu_glyph[i] = NULL;
+ for(int i = 0; i < NSA_GLYPH_MAX; i++)
+ menu_glyph[i] = NULL;
menu_glyph[NSA_GLYPH_SUBMENU] = NewObject(NULL, "sysiclass",
SYSIA_Which, MENUSUB,
@@ -341,7 +342,7 @@ void ami_menu_free_glyphs(void)
int i;
if(menu_glyphs_loaded == false) return;
- while(i < NSA_GLYPH_MAX) {
+ for(i = 0; i < NSA_GLYPH_MAX; i++) {
if(menu_glyph[i]) DisposeObject(menu_glyph[i]);
menu_glyph[i] = NULL;
};
-----------------------------------------------------------------------
Summary of changes:
amiga/menu.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/amiga/menu.c b/amiga/menu.c
index 9d47cbd..de4d63e 100644
--- a/amiga/menu.c
+++ b/amiga/menu.c
@@ -318,7 +318,8 @@ void ami_menu_refresh(struct gui_window_2 *gwin)
static void ami_menu_load_glyphs(struct DrawInfo *dri)
{
- while(i < NSA_GLYPH_MAX) menu_glyph[i] = NULL;
+ for(int i = 0; i < NSA_GLYPH_MAX; i++)
+ menu_glyph[i] = NULL;
menu_glyph[NSA_GLYPH_SUBMENU] = NewObject(NULL, "sysiclass",
SYSIA_Which, MENUSUB,
@@ -341,7 +342,7 @@ void ami_menu_free_glyphs(void)
int i;
if(menu_glyphs_loaded == false) return;
- while(i < NSA_GLYPH_MAX) {
+ for(i = 0; i < NSA_GLYPH_MAX; i++) {
if(menu_glyph[i]) DisposeObject(menu_glyph[i]);
menu_glyph[i] = NULL;
};
--
NetSurf Browser