aboutsummaryrefslogtreecommitdiffstats
path: root/src/screen_search.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-09-15 12:27:28 +0200
committerMax Kellermann <max@duempel.org>2008-09-15 12:27:28 +0200
commit0b3bcb6c7f1bb4a633896b8a9936e498570ef8e1 (patch)
tree611b143eb0834c892246f8b31311e9224977c952 /src/screen_search.c
parent1f0ff952055c920c8671a1587c622e4df8b4a99d (diff)
downloadmpd-0b3bcb6c7f1bb4a633896b8a9936e498570ef8e1.tar.gz
mpd-0b3bcb6c7f1bb4a633896b8a9936e498570ef8e1.tar.xz
mpd-0b3bcb6c7f1bb4a633896b8a9936e498570ef8e1.zip
const pointers
Convert pointers to const whenever it is possible. Fixes all those -Wconst warnings.
Diffstat (limited to '')
-rw-r--r--src/screen_search.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/screen_search.c b/src/screen_search.c
index 234c91a52..816968619 100644
--- a/src/screen_search.c
+++ b/src/screen_search.c
@@ -47,8 +47,8 @@ extern gint mpdclient_finish_command(mpdclient_t *c);
typedef struct {
int id;
- char *name;
- char *localname;
+ const char *name;
+ const char *localname;
} search_tag_t;
static search_tag_t search_tag[] = {
@@ -94,7 +94,7 @@ search_get_tag_id(char *name)
typedef struct {
int table;
- char *label;
+ const char *label;
} search_type_t;
static search_type_t mode[] = {
@@ -114,11 +114,11 @@ static gboolean advanced_search_mode = FALSE;
/* search info */
-static char *
+static const char *
lw_search_help_callback(int index, int *highlight, void *data)
{
int text_rows;
- static char *text[] = {
+ static const char *text[] = {
"Quick - just enter a string and ncmpc will search according",
" to the current search mode (displayed above).",
"",
@@ -435,7 +435,7 @@ update(screen_t *screen, mpdclient_t *c)
wnoutrefresh(lw->w);
}
-static char *
+static const char *
get_title(char *str, size_t size)
{
if( advanced_search_mode && pattern )