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_file.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/screen_file.c') diff --git a/src/screen_file.c b/src/screen_file.c index c8468cc81..35245a194 100644 --- a/src/screen_file.c +++ b/src/screen_file.c @@ -146,7 +146,7 @@ playlist_changed_callback(mpdclient_t *c, int event, gpointer data) } /* list_window callback */ -char * +const char * browse_lw_callback(int index, int *highlight, void *data) { static char buf[BUFSIZE]; @@ -195,7 +195,7 @@ browse_lw_callback(int index, int *highlight, void *data) /* chdir */ static int change_directory(screen_t *screen, mpdclient_t *c, filelist_entry_t *entry, - char *new_path) + const char *new_path) { mpd_InfoEntity *entity = NULL; gchar *path = NULL; @@ -591,7 +591,7 @@ browse_close(void) { } -static char * +static const char * browse_title(char *str, size_t size) { char *pathcopy; -- cgit v1.2.3