diff options
Diffstat (limited to 'src/c_mpdview.c')
-rw-r--r-- | src/c_mpdview.c | 11 |
1 files changed, 4 insertions, 7 deletions
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); |