aboutsummaryrefslogtreecommitdiffstats
path: root/src/list_window.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-09-17 12:29:07 +0200
committerMax Kellermann <max@duempel.org>2008-09-17 12:29:07 +0200
commit75348aad7cbddb9ef736a0ecca9e3ddfb8b75f8d (patch)
tree5fb6924e98b6882e8a63771578e56c7c156101a4 /src/list_window.c
parent9e7dda69f7951f678a1b31d693dba90199d17248 (diff)
downloadmpd-75348aad7cbddb9ef736a0ecca9e3ddfb8b75f8d.tar.gz
mpd-75348aad7cbddb9ef736a0ecca9e3ddfb8b75f8d.tar.xz
mpd-75348aad7cbddb9ef736a0ecca9e3ddfb8b75f8d.zip
make several functions return void
Diffstat (limited to 'src/list_window.c')
-rw-r--r--src/list_window.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/list_window.c b/src/list_window.c
index ad671f0cf..5ab8f9c9c 100644
--- a/src/list_window.c
+++ b/src/list_window.c
@@ -44,15 +44,13 @@ list_window_init(WINDOW *w, unsigned width, unsigned height)
return lw;
}
-struct list_window *
+void
list_window_free(struct list_window *lw)
{
if (lw) {
memset(lw, 0, sizeof(list_window_t));
g_free(lw);
}
-
- return NULL;
}
void
@@ -148,7 +146,7 @@ list_window_next_page(struct list_window *lw, unsigned length)
if (lw->selected + lw->rows < length)
lw->selected += lw->rows - 1;
else
- return list_window_last(lw, length);
+ list_window_last(lw, length);
}
void
@@ -370,7 +368,7 @@ list_window_init_state(void)
return g_malloc0(sizeof(list_window_state_t));
}
-list_window_state_t *
+void
list_window_free_state(list_window_state_t *state)
{
if (state) {
@@ -389,8 +387,6 @@ list_window_free_state(list_window_state_t *state)
g_free(state);
}
-
- return NULL;
}
void