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/list_window.h | |
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 '')
-rw-r--r-- | src/list_window.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/list_window.h b/src/list_window.h index 9ef67214b..114f71eff 100644 --- a/src/list_window.h +++ b/src/list_window.h @@ -7,9 +7,9 @@ #define LW_HIDE_CURSOR 0x01 -typedef char *(*list_window_callback_fn_t)(int index, - int *highlight, - void *data); +typedef const char *(*list_window_callback_fn_t)(int index, + int *highlight, + void *data); typedef struct { WINDOW *w; @@ -60,7 +60,7 @@ void list_window_check_selected(list_window_t *lw, int length); int list_window_find(list_window_t *lw, list_window_callback_fn_t callback, void *callback_data, - char *str, + const char *str, int wrap); /* find a string in a list window (reversed) */ @@ -68,7 +68,7 @@ int list_window_rfind(list_window_t *lw, list_window_callback_fn_t callback, void *callback_data, - char *str, + const char *str, int wrap, int rows); |