diff options
author | Peter Ammon <corydoras@ridiculousfish.com> | 2012-01-14 22:00:00 -0800 |
---|---|---|
committer | Peter Ammon <corydoras@ridiculousfish.com> | 2012-01-14 22:00:00 -0800 |
commit | 203c749e6cc2d5ac0e9e8e240c77d94e179c60d0 (patch) | |
tree | c28df4fa19ac064b0d03f77d14d98fc4154900d5 /fish_pager.cpp | |
parent | f3e2d2f68f14120e298fb1d50be89fa5e83c9222 (diff) |
Improved const-correctness, eliminating warnings.
Migrated some int to size_t
Diffstat (limited to 'fish_pager.cpp')
-rw-r--r-- | fish_pager.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fish_pager.cpp b/fish_pager.cpp index b054b818..4f9c8223 100644 --- a/fish_pager.cpp +++ b/fish_pager.cpp @@ -146,7 +146,7 @@ static buffer_t *pager_buffer; The environment variables used to specify the color of different tokens. */ -static wchar_t *hightlight_var[] = +static const wchar_t *hightlight_var[] = { L"fish_pager_color_prefix", L"fish_pager_color_completion", @@ -247,7 +247,7 @@ static void recalc_width( array_list_t *l, const wchar_t *prefix ) Test if the specified character sequence has been entered on the keyboard */ -static int try_sequence( char *seq ) +static int try_sequence( const char *seq ) { int j, k; wint_t c=0; @@ -277,7 +277,7 @@ static wint_t readch() { struct mapping { - char *seq; + const char *seq; wint_t bnd; } ; |