summaryrefslogtreecommitdiff
path: root/amiga/gui.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2014-04-05 19:29:27 +0100
committerChris Young <chris@unsatisfactorysoftware.co.uk>2014-04-05 20:26:39 +0100
commit412df342987f754958a9756817ccacaebe07f764 (patch)
treee7a743c5086f9e52e863f791d75029c21de50f45 /amiga/gui.c
parent99c47eb99be4309e996f4cb038916260fd2bcb44 (diff)
downloadnetsurf-412df342987f754958a9756817ccacaebe07f764.tar.gz
netsurf-412df342987f754958a9756817ccacaebe07f764.tar.bz2
Fix some cppcheck variableScope warnings
Diffstat (limited to 'amiga/gui.c')
-rw-r--r--amiga/gui.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/amiga/gui.c b/amiga/gui.c
index 5c707c5ca..b893b6f2f 100644
--- a/amiga/gui.c
+++ b/amiga/gui.c
@@ -251,13 +251,12 @@ static bool path_add_part(char *path, int length, const char *newpart)
STRPTR ami_locale_langs(void)
{
struct Locale *locale;
- STRPTR acceptlangs = NULL, acceptlangs2 = NULL;
- int i;
+ STRPTR acceptlangs = NULL;
char *remapped;
if(locale = OpenLocale(NULL))
{
- for(i=0;i<10;i++)
+ for(int i = 0; i < 10; i++)
{
if(locale->loc_PrefLanguages[i])
{
@@ -266,7 +265,7 @@ STRPTR ami_locale_langs(void)
{
if(acceptlangs)
{
- acceptlangs2 = acceptlangs;
+ STRPTR acceptlangs2 = acceptlangs;
acceptlangs = ASPrintf("%s, %s",acceptlangs2, remapped);
FreeVec(acceptlangs2);
acceptlangs2 = NULL;