diff options
author | Eric Wong <normalperson@yhbt.net> | 2008-09-23 20:48:12 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-23 20:48:12 +0200 |
commit | 27fad52c6bb1d8803f400a6e95fa5c24396a1c12 (patch) | |
tree | 9b1fadeef43c3193b29344cda223c7b2c754433b /src/audio.c | |
parent | f5df13f853cf4c0e529244dd40ab57c78a7d1bc6 (diff) | |
download | mpd-27fad52c6bb1d8803f400a6e95fa5c24396a1c12.tar.gz mpd-27fad52c6bb1d8803f400a6e95fa5c24396a1c12.tar.xz mpd-27fad52c6bb1d8803f400a6e95fa5c24396a1c12.zip |
start using prefixcmp()
LOC reduction and less noise makes things easier for
tired old folks to follow.
Diffstat (limited to 'src/audio.c')
-rw-r--r-- | src/audio.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/audio.c b/src/audio.c index f58a3376e..8c74c3cc8 100644 --- a/src/audio.c +++ b/src/audio.c @@ -27,7 +27,6 @@ #include "os_compat.h" #define AUDIO_DEVICE_STATE "audio_device_state:" -#define AUDIO_DEVICE_STATE_LEN (sizeof(AUDIO_DEVICE_STATE)-1) #define AUDIO_BUFFER_SIZE 2*MPD_PATH_MAX static struct audio_format audio_configFormat; @@ -460,7 +459,7 @@ void readAudioDevicesState(FILE *fp) while (myFgets(buffer, AUDIO_BUFFER_SIZE, fp)) { char *c, *name; - if (strncmp(buffer, AUDIO_DEVICE_STATE, AUDIO_DEVICE_STATE_LEN)) + if (prefixcmp(buffer, AUDIO_DEVICE_STATE)) continue; c = strchr(buffer, ':'); |