summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 78ccd8a)
raw | patch | inline | side by side (parent: 78ccd8a)
author | Max Kellermann <max@duempel.org> | |
Sat, 17 Oct 2009 22:32:32 +0000 (00:32 +0200) | ||
committer | Max Kellermann <max@duempel.org> | |
Sat, 17 Oct 2009 22:32:32 +0000 (00:32 +0200) |
Nobody evaluates the return values.
src/screen_file.c | patch | blob | history |
diff --git a/src/screen_file.c b/src/screen_file.c
index 1387cee519fc066f0bc96bf0b02d8627de5d187c..d9faa69ac66430032a736b971de0211b9a8db7dc 100644 (file)
--- a/src/screen_file.c
+++ b/src/screen_file.c
return change_to_entry(c, entry);
}
-static int
+static void
handle_save(struct mpdclient *c)
{
struct list_window_range range;
const char *defaultname = NULL;
char *defaultname_utf8 = NULL;
- int ret;
list_window_get_range(browser.lw, &range);
if (range.start == range.end)
- return -1;
+ return;
for (unsigned i = range.start; i < range.end; ++i) {
struct filelist_entry *entry =
if(defaultname)
defaultname_utf8 = utf8_to_locale(defaultname);
- ret = playlist_save(c, NULL, defaultname_utf8);
+ playlist_save(c, NULL, defaultname_utf8);
g_free(defaultname_utf8);
-
- return ret;
}
-static int
+static void
handle_delete(struct mpdclient *c)
{
struct mpd_connection *connection = mpdclient_get_connection(c);
if( key != YES[0] ) {
/* translators: a dialog was aborted by the user */
screen_status_printf(_("Aborted"));
- return 0;
+ return;
}
if (!mpd_run_rm(connection, mpd_playlist_get_path(playlist))) {
user */
screen_status_printf(_("Playlist deleted"));
}
- return 0;
}
static void