From 66d39ce2e04ea14d9d9636ae203bec4c39932b0c Mon Sep 17 00:00:00 2001 From: awy Date: Sun, 24 Aug 2025 05:03:44 +0300 Subject: :) --- src/stmusic.c | 8 ++++---- 1 file 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) { -- cgit v1.2.3