aboutsummaryrefslogtreecommitdiffstats
path: root/src/compress.c
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2006-08-01 04:18:41 +0000
committerEric Wong <normalperson@yhbt.net>2006-08-01 04:18:41 +0000
commit5aca21a502839e2cfd30f0cfb186badc302a7eb5 (patch)
tree9e8b25b4b2c648a85dedcfe69c1bc7100564b4f9 /src/compress.c
parent9ccf40b24293198c8091ca5dc269006776b080bc (diff)
downloadmpd-5aca21a502839e2cfd30f0cfb186badc302a7eb5.tar.gz
mpd-5aca21a502839e2cfd30f0cfb186badc302a7eb5.tar.xz
mpd-5aca21a502839e2cfd30f0cfb186badc302a7eb5.zip
Several fixes uncovered with -pedantic
playerData.c: proper error checking directory.c: properly check myFgets() for errors (it returns NULL on error) inputPlugins/mp3_plugin.c get rid of commas at the end of enums interface.c: we weren't using long long, so strtoll isn't needed get rid of void-pointer arithmetic sllist.c: get rid of void-pointer arithmetic compress.c: get rid of C++ comments, some compilers don't accept them Note that I personally like void pointer arithmetic, but some ancient compilers don't support them :( git-svn-id: https://svn.musicpd.org/mpd/trunk@4510 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/compress.c')
-rw-r--r--src/compress.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/compress.c b/src/compress.c
index 08923c22a..a29d4ef78 100644
--- a/src/compress.c
+++ b/src/compress.c
@@ -253,10 +253,10 @@ void CompressDo(void *data, unsigned int length)
127);
clipped = 0;
- // target line
- //XDrawPoint(display, window, redGC,
- // pn, 127 - TARGET/256);
- // amplification edge
+ /* target line */
+ /* XDrawPoint(display, window, redGC, */
+ /* pn, 127 - TARGET/256); */
+ /* amplification edge */
XDrawLine(display, window, dkyellowGC,
pn,
127 - (peaks[pn]*gainCurrent
@@ -311,7 +311,7 @@ void CompressDo(void *data, unsigned int length)
127 - (peak*gainCurrent
>> (GAINSHIFT + 8)));
- // gain indicator
+ /* gain indicator */
XFillRectangle(display, window, whiteGC, 0, 128,
prefs.buckets, 8);
x = (gainTarget - (1 << GAINSHIFT))*prefs.buckets
@@ -326,7 +326,7 @@ void CompressDo(void *data, unsigned int length)
x, 132 - 1,
x, 132 + 1);
- // blue peak line
+ /* blue peak line */
XDrawLine(display, window, blueGC,
0, 127 - (peak >> 8), prefs.buckets,
127 - (peak >> 8));