From 0b3bcb6c7f1bb4a633896b8a9936e498570ef8e1 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 15 Sep 2008 12:27:28 +0200 Subject: const pointers Convert pointers to const whenever it is possible. Fixes all those -Wconst warnings. --- src/screen_utils.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/screen_utils.h') diff --git a/src/screen_utils.h b/src/screen_utils.h index a5adf79f4..0bb52262e 100644 --- a/src/screen_utils.h +++ b/src/screen_utils.h @@ -5,14 +5,14 @@ void screen_bell(void); /* read a characher from the status window */ -int screen_getch(WINDOW *w, char *prompt); +int screen_getch(WINDOW *w, const char *prompt); /* read a string from the status window */ -char *screen_getstr(WINDOW *w, char *prompt); -char *screen_readln(WINDOW *w, char *prompt, char *value, +char *screen_getstr(WINDOW *w, const char *prompt); +char *screen_readln(WINDOW *w, const char *prompt, const char *value, GList **history, GCompletion *gcmp); -char *screen_readln_masked(WINDOW *w, char *prompt); -char *screen_read_pasword(WINDOW *w, char *prompt); +char *screen_readln_masked(WINDOW *w, const char *prompt); +char *screen_read_pasword(WINDOW *w, const char *prompt); /* query user for a string and find it in a list window */ int screen_find(screen_t *screen, list_window_t *lw, @@ -25,6 +25,6 @@ gint screen_auth(mpdclient_t *c); void screen_display_completion_list(screen_t *screen, GList *list); -void set_xterm_title(char *format, ...); +void set_xterm_title(const char *format, ...); #endif -- cgit v1.2.3