From ffef7f0c4faaca2f7a2d7d78409110e8eaf7f8d5 Mon Sep 17 00:00:00 2001 From: Joe Date: Mon, 27 Jun 2022 22:52:53 +0200 Subject: WIP --- src/c_mpdview.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'src/c_mpdview.c') diff --git a/src/c_mpdview.c b/src/c_mpdview.c index 40166d4..df5afc6 100644 --- a/src/c_mpdview.c +++ b/src/c_mpdview.c @@ -63,17 +63,14 @@ main { struct mpd_connection* conn; + (void)argc; + (void)argv; + (void)envp; conn = mpd_connection_new("localhost", 6600, 3000); - if (conn == NULL) { - return (EXIT_FAILURE); - } if (mpd_connection_get_error(conn) != MPD_ERROR_SUCCESS) { dprintf(STDERR_FILENO, "%s: %s\n", PROGNAME, mpd_connection_get_error_message(conn)); + return (NULL); } - (void)conn; - (void)argc; - (void)argv; - (void)envp; mpd_connection_free(conn); conn = NULL; return (EXIT_SUCCESS); -- cgit v1.2.3