diff options
author | michux <michux@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2008-03-03 22:57:16 +0000 |
---|---|---|
committer | michux <michux@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2008-03-03 22:57:16 +0000 |
commit | 86bf4cf15d18dc2ef7fd9e65e1e0d7f49d60480b (patch) | |
tree | c0cc7c72d96d7e371746e979ef285af64154fe99 | |
parent | 98f6c48487f4bde508484191ef700ed1b238eff9 (diff) | |
download | lcd4linux-86bf4cf15d18dc2ef7fd9e65e1e0d7f49d60480b.tar.gz |
reformat plugin_mpd - use c style comments
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@862 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to '')
-rw-r--r-- | plugin_mpd.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/plugin_mpd.c b/plugin_mpd.c index b4e4b12..e94af5e 100644 --- a/plugin_mpd.c +++ b/plugin_mpd.c @@ -85,7 +85,7 @@ TODO: /* struct timeval */ #include <sys/time.h> -//source: http://www.musicpd.org/libmpdclient.shtml +/* source: http://www.musicpd.org/libmpdclient.shtml */ #include "libmpdclient.h" #ifdef WITH_DMALLOC @@ -195,14 +195,15 @@ static int mpd_update() int timedelta = (now.tv_sec - timestamp.tv_sec) * 1000 + (now.tv_usec - timestamp.tv_usec) / 1000; if (timedelta < waittime) { - //debug("[MPD] waittime not reached...\n"); + /* debug("[MPD] waittime not reached...\n"); */ return 1; } - //check if configured + + /* check if configured */ if (configure_mpd() < 0) { return -1; } - //check if connected + /* check if connected */ if (conn == NULL || conn->error) { if (conn) { debug("[MPD] Error: [%s], try to reconnect to [%s]:[%i]\n", conn->errorStr, host, iport); @@ -236,19 +237,18 @@ static int mpd_update() mpd_sendCurrentSongCommand(conn); mpd_sendCommandListEnd(conn); -//stats stats = mpd_getStats(conn); if (stats == NULL) { error("[MPD] error mpd_getStats: %s", conn->errorStr); goto cleanup; } -//status + mpd_nextListOkCommand(conn); if ((status = mpd_getStatus(conn)) == NULL) { error("[MPD] error mpd_nextListOkCommand: %s", conn->errorStr); goto cleanup; } -//song + mpd_nextListOkCommand(conn); while ((entity = mpd_getNextInfoEntity(conn))) { mpd_Song *song = entity->info.song; @@ -578,7 +578,7 @@ int plugin_init_mpd(void) else debug("[MPD] error, NOT configured!"); - //when mpd dies, do NOT exit application, ignore it! + /* when mpd dies, do NOT exit application, ignore it! */ signal(SIGPIPE, SIG_IGN); gettimeofday(×tamp, NULL); |