aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorcorvid <corvid@lavabit.com>2009-05-29 03:23:34 +0000
committercorvid <corvid@lavabit.com>2009-05-29 03:23:34 +0000
commitf261111beac6ada3c8973fb91d683db8f9944525 (patch)
treefbd2e7ddbfabe7a5eef6d418592da6ebf37dc655 /src
parentcdfd1ad0ba958e7f2f8d26b84573baa2d7796a20 (diff)
consts
Diffstat (limited to 'src')
-rw-r--r--src/keys.cc2
-rw-r--r--src/misc.c8
-rw-r--r--src/url.c2
3 files changed, 6 insertions, 6 deletions
diff --git a/src/keys.cc b/src/keys.cc
index 3dea1d98..738679db 100644
--- a/src/keys.cc
+++ b/src/keys.cc
@@ -76,7 +76,7 @@ static const Mapping_t modifierNames[] = {
{ "Button3", fltk::BUTTON3 }
};
-static KeyBinding_t default_keys[] = {
+static const KeyBinding_t default_keys[] = {
{ "open" , KEYS_OPEN , fltk::CTRL , 'o' },
{ "new-window" , KEYS_NEW_WINDOW , fltk::CTRL , 'n' },
{ "new-tab" , KEYS_NEW_TAB , fltk::CTRL , 't' },
diff --git a/src/misc.c b/src/misc.c
index d1a5352e..27b7ff10 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -27,7 +27,7 @@
*/
char *a_Misc_escape_chars(const char *str, const char *esc_set)
{
- static const char *hex = "0123456789ABCDEF";
+ static const char *const hex = "0123456789ABCDEF";
char *p = NULL;
Dstr *dstr;
int i;
@@ -350,9 +350,9 @@ int a_Misc_parse_geometry(char *str, int *x, int *y, int *w, int *h)
*/
char *a_Misc_encode_base64(const char *in)
{
- static const char *base64_hex = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
- "abcdefghijklmnopqrstuvwxyz"
- "0123456789+/";
+ static const char *const base64_hex = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
+ "abcdefghijklmnopqrstuvwxyz"
+ "0123456789+/";
char *out = NULL;
int len, i = 0;
diff --git a/src/url.c b/src/url.c
index 201892ea..d6b16b04 100644
--- a/src/url.c
+++ b/src/url.c
@@ -578,7 +578,7 @@ char *a_Url_decode_hex_str(const char *str)
*/
char *a_Url_encode_hex_str(const char *str)
{
- static const char *verbatim = "-_.*";
+ static const char *const verbatim = "-_.*";
char *newstr, *c;
if (!str)