Changeset 862

Show
Ignore:
Timestamp:
03/03/08 23:57:16 (9 months ago)
Author:
michux
Message:

reformat plugin_mpd - use c style comments

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/plugin_mpd.c

    r860 r862  
    8686#include <sys/time.h> 
    8787 
    88 //source: http://www.musicpd.org/libmpdclient.shtml 
     88/* source: http://www.musicpd.org/libmpdclient.shtml */ 
    8989#include "libmpdclient.h" 
    9090 
     
    196196 
    197197    if (timedelta < waittime) { 
    198   //debug("[MPD] waittime not reached...\n"); 
     198  /* debug("[MPD] waittime not reached...\n"); */ 
    199199  return 1; 
    200200    } 
    201     //check if configured 
     201 
     202    /* check if configured */ 
    202203    if (configure_mpd() < 0) { 
    203204  return -1; 
    204205    } 
    205     //check if connected 
     206    /* check if connected */ 
    206207    if (conn == NULL || conn->error) { 
    207208  if (conn) { 
     
    237238    mpd_sendCommandListEnd(conn); 
    238239 
    239 //stats 
    240240    stats = mpd_getStats(conn); 
    241241    if (stats == NULL) { 
     
    243243  goto cleanup; 
    244244    } 
    245 //status 
     245 
    246246    mpd_nextListOkCommand(conn); 
    247247    if ((status = mpd_getStatus(conn)) == NULL) { 
     
    249249  goto cleanup; 
    250250    } 
    251 //song     
     251 
    252252    mpd_nextListOkCommand(conn); 
    253253    while ((entity = mpd_getNextInfoEntity(conn))) { 
     
    579579  debug("[MPD] error, NOT configured!"); 
    580580 
    581     //when mpd dies, do NOT exit application, ignore it! 
     581    /* when mpd dies, do NOT exit application, ignore it! */ 
    582582    signal(SIGPIPE, SIG_IGN); 
    583583    gettimeofday(&timestamp, NULL);