Commit c5dc615e authored by Max Kellermann's avatar Max Kellermann

output/osx: use IsDigitASCII()

parent beeb0202
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
#include "thread/Mutex.hxx" #include "thread/Mutex.hxx"
#include "thread/Cond.hxx" #include "thread/Cond.hxx"
#include "util/ByteOrder.hxx" #include "util/ByteOrder.hxx"
#include "util/CharUtil.hxx"
#include "util/StringAPI.hxx" #include "util/StringAPI.hxx"
#include "util/StringBuffer.hxx" #include "util/StringBuffer.hxx"
#include "util/StringFormat.hxx" #include "util/StringFormat.hxx"
...@@ -239,7 +240,7 @@ osx_output_parse_channel_map(const char *device_name, ...@@ -239,7 +240,7 @@ osx_output_parse_channel_map(const char *device_name,
} }
if (want_number && if (want_number &&
(isdigit(*channel_map_str) || *channel_map_str == '-') (IsDigitASCII(*channel_map_str) || *channel_map_str == '-')
) { ) {
char *endptr; char *endptr;
channel_map[inserted_channels] = strtol(channel_map_str, &endptr, 10); channel_map[inserted_channels] = strtol(channel_map_str, &endptr, 10);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment