aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2008-06-02 10:10:32 +0000
committerEric Wong <normalperson@yhbt.net>2008-06-02 10:10:32 +0000
commit29df78fe1e73157a9948f7e05d04beb97143a69d (patch)
tree9ae31164e7b161e887ff816857482f3c69f9c553
parentf57be50d73a167500ee04135e15e0474a7532478 (diff)
downloadmpd-29df78fe1e73157a9948f7e05d04beb97143a69d.tar.gz
mpd-29df78fe1e73157a9948f7e05d04beb97143a69d.tar.xz
mpd-29df78fe1e73157a9948f7e05d04beb97143a69d.zip
audio.c: avoid magic numbers even if they have comments :)
git-svn-id: https://svn.musicpd.org/mpd/trunk@7373 09075e82-0dd4-0310-85a5-a0d7c8717e4f
-rw-r--r--src/audio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audio.c b/src/audio.c
index 50b54cb7d..9f6bedc33 100644
--- a/src/audio.c
+++ b/src/audio.c
@@ -27,7 +27,7 @@
#include "os_compat.h"
#define AUDIO_DEVICE_STATE "audio_device_state:"
-#define AUDIO_DEVICE_STATE_LEN 19 /* strlen(AUDIO_DEVICE_STATE) */
+#define AUDIO_DEVICE_STATE_LEN (sizeof(AUDIO_DEVICE_STATE)-1)
#define AUDIO_BUFFER_SIZE 2*MPD_PATH_MAX
static AudioFormat audio_format;