summaryrefslogtreecommitdiff
path: root/src/output/plugins/OSXOutputPlugin.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2020-07-01 22:39:23 +0200
committerMax Kellermann <max@musicpd.org>2020-07-01 22:39:54 +0200
commitc5dc615efefdadb2f9321b140a8f1ae23c3670ed (patch)
tree2ce77d40ab9f7d1c6dd65ffe25e23e34b33e1744 /src/output/plugins/OSXOutputPlugin.cxx
parentbeeb02025e05995215e176b75d435e08fbde9d11 (diff)
output/osx: use IsDigitASCII()
Diffstat (limited to 'src/output/plugins/OSXOutputPlugin.cxx')
-rw-r--r--src/output/plugins/OSXOutputPlugin.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/output/plugins/OSXOutputPlugin.cxx b/src/output/plugins/OSXOutputPlugin.cxx
index 6eeb4392b..d8684da16 100644
--- a/src/output/plugins/OSXOutputPlugin.cxx
+++ b/src/output/plugins/OSXOutputPlugin.cxx
@@ -32,6 +32,7 @@
#include "thread/Mutex.hxx"
#include "thread/Cond.hxx"
#include "util/ByteOrder.hxx"
+#include "util/CharUtil.hxx"
#include "util/StringAPI.hxx"
#include "util/StringBuffer.hxx"
#include "util/StringFormat.hxx"
@@ -239,7 +240,7 @@ osx_output_parse_channel_map(const char *device_name,
}
if (want_number &&
- (isdigit(*channel_map_str) || *channel_map_str == '-')
+ (IsDigitASCII(*channel_map_str) || *channel_map_str == '-')
) {
char *endptr;
channel_map[inserted_channels] = strtol(channel_map_str, &endptr, 10);