diff options
author | awy <awy@awy.one> | 2025-08-24 05:03:44 +0300 |
---|---|---|
committer | awy <awy@awy.one> | 2025-08-24 05:03:44 +0300 |
commit | 66d39ce2e04ea14d9d9636ae203bec4c39932b0c (patch) | |
tree | 5f4d0d70d98f93f827f8bba9ec1fa7b774c133fb | |
parent | f0f0a3dacc0e6894e83d42ab7788771b33b701b5 (diff) |
:)
-rw-r--r-- | src/stmusic.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/stmusic.c b/src/stmusic.c index 1a02813..46d7059 100644 --- a/src/stmusic.c +++ b/src/stmusic.c @@ -24,7 +24,7 @@ main(void) struct mpd_status *status; struct mpd_song *song; - // Connect to MPD (default: localhost:6600) + /* Connect to MPD (default: localhost:6600) */ conn = mpd_connection_new(NULL, 0, 30000); if (mpd_connection_get_error(conn) != MPD_ERROR_SUCCESS) { fprintf(stderr, "MPD connection error: %s\n", @@ -32,7 +32,7 @@ main(void) return 1; } - // Get MPD status + /* Get MPD status */ status = mpd_run_status(conn); if (!status) { fprintf(stderr, "Failed to get status: %s\n", @@ -43,14 +43,14 @@ main(void) enum mpd_state st = mpd_status_get_state(status); - // Don't print anything if mpd is stopped + /* Don't print anything if mpd is stopped */ if (st == MPD_STATE_STOP) { return 0; } if (st == MPD_STATE_PAUSE) { printf(" "); }; - // Get current song + /* Get current song */ song = mpd_run_current_song(conn); if (song) { |