summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1151b4a)
raw | patch | inline | side by side (parent: 1151b4a)
author | Max Kellermann <max.kellermann@gmail.com> | |
Sun, 19 Mar 2017 09:42:00 +0000 (10:42 +0100) | ||
committer | Max Kellermann <max.kellermann@gmail.com> | |
Sun, 19 Mar 2017 09:42:00 +0000 (10:42 +0100) |
There's no point in having this function that is called only once.
src/main.c | patch | blob | history |
diff --git a/src/main.c b/src/main.c
index 12bee3d733a2e9733ab27f8a8feb37c4079500e5..af6732737d2fd26079057501819b930b4b2a6095 100644 (file)
--- a/src/main.c
+++ b/src/main.c
}
#endif
-static void
-exit_and_cleanup(void)
-{
- screen_exit();
-#ifndef NCMPC_MINI
- set_xterm_title("");
-#endif
- printf("\n");
-
- mpdclient_free(mpd);
-}
-
#ifndef WIN32
static void
catch_sigint(gcc_unused int sig)
ncmpc_lirc_close();
#endif
- exit_and_cleanup();
+ screen_exit();
+#ifndef NCMPC_MINI
+ set_xterm_title("");
+#endif
+ printf("\n");
+
+ mpdclient_free(mpd);
#ifdef ENABLE_LYRICS_SCREEN
lyrics_deinit();