diff options
author | Joe <bousset.rudy@gmail.com> | 2022-06-27 22:52:53 +0200 |
---|---|---|
committer | Joe <bousset.rudy@gmail.com> | 2022-06-27 22:52:53 +0200 |
commit | ffef7f0c4faaca2f7a2d7d78409110e8eaf7f8d5 (patch) | |
tree | 26d38b3cfd8a80c7bccd1a93610a9e9537c01e4c | |
parent | Ok (diff) | |
download | mpdview-ffef7f0c4faaca2f7a2d7d78409110e8eaf7f8d5.tar.gz mpdview-ffef7f0c4faaca2f7a2d7d78409110e8eaf7f8d5.tar.bz2 mpdview-ffef7f0c4faaca2f7a2d7d78409110e8eaf7f8d5.tar.xz mpdview-ffef7f0c4faaca2f7a2d7d78409110e8eaf7f8d5.tar.zst mpdview-ffef7f0c4faaca2f7a2d7d78409110e8eaf7f8d5.zip |
WIP
-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); |