summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/IO/about.c2
-rw-r--r--src/form.cc2
-rw-r--r--src/menu.cc2
-rw-r--r--src/ui.cc3
4 files changed, 5 insertions, 4 deletions
diff --git a/src/IO/about.c b/src/IO/about.c
index 27b24f47..03d5057c 100644
--- a/src/IO/about.c
+++ b/src/IO/about.c
@@ -14,7 +14,7 @@
/*
* HTML text for startup screen
*/
-const char *AboutSplash=
+const char *const AboutSplash=
"<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>\n"
"<html>\n"
"<head>\n"
diff --git a/src/form.cc b/src/form.cc
index 219b3b5d..76f2c32b 100644
--- a/src/form.cc
+++ b/src/form.cc
@@ -342,7 +342,7 @@ void Html_tag_open_form(DilloHtml *html, const char *tag, int tagsize)
void Html_tag_close_form(DilloHtml *html, int TagIdx)
{
- static const char *SubmitTag =
+ static const char *const SubmitTag =
"<input type='submit' value='?Submit?' alt='dillo-generated-button'>";
DilloHtmlForm *form;
// int i;
diff --git a/src/menu.cc b/src/menu.cc
index 9b75c422..54babc0b 100644
--- a/src/menu.cc
+++ b/src/menu.cc
@@ -38,7 +38,7 @@ static DilloUrl *popup_url = NULL;
// Weak reference to the popup's bw
static BrowserWindow *popup_bw = NULL;
// Where to place the filemenu popup
-int popup_x, popup_y;
+static int popup_x, popup_y;
// History popup direction (-1 = back, 1 = forward).
static int history_direction = -1;
// History popup, list of URL-indexes.
diff --git a/src/ui.cc b/src/ui.cc
index b47e11cf..9af1b2a4 100644
--- a/src/ui.cc
+++ b/src/ui.cc
@@ -993,7 +993,8 @@ void UI::panel_cb_i()
*/
void UI::color_change_cb_i()
{
- static int ncolor = 0, cols[] = {7,17,26,51,140,156,205,206,215,-1};
+ const int cols[] = {7,17,26,51,140,156,205,206,215,-1};
+ static int ncolor = 0;
ncolor = (cols[ncolor+1] < 0) ? 0 : ncolor + 1;
CuteColor = cols[ncolor];