diff options
author | Max Kellermann <max@duempel.org> | 2008-09-15 12:27:28 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-15 12:27:28 +0200 |
commit | 0b3bcb6c7f1bb4a633896b8a9936e498570ef8e1 (patch) | |
tree | 611b143eb0834c892246f8b31311e9224977c952 /src/screen_file.c | |
parent | 1f0ff952055c920c8671a1587c622e4df8b4a99d (diff) | |
download | mpd-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 'src/screen_file.c')
-rw-r--r-- | src/screen_file.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; |