summaryrefslogtreecommitdiff
path: root/src/stmusic.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stmusic.c')
-rw-r--r--src/stmusic.c8
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) {