diff options
author | Max Kellermann <max@musicpd.org> | 2019-09-02 20:09:56 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2019-09-02 20:10:26 +0200 |
commit | 5dc7cb87bb27c4e4af7c8bf30bd66c158f0ac55c (patch) | |
tree | cbf1ff2dc2e0de2781bdd555a349d7b365ed7ab8 /src/db/plugins/simple | |
parent | f885e068c89ed59e64463414bdd75bdfa85fff87 (diff) |
db/simple/DirectorySave: use StringIsEqual()
Diffstat (limited to 'src/db/plugins/simple')
-rw-r--r-- | src/db/plugins/simple/DirectorySave.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/db/plugins/simple/DirectorySave.cxx b/src/db/plugins/simple/DirectorySave.cxx index cdfd47981..2d5e07d7c 100644 --- a/src/db/plugins/simple/DirectorySave.cxx +++ b/src/db/plugins/simple/DirectorySave.cxx @@ -26,6 +26,7 @@ #include "fs/io/TextFile.hxx" #include "fs/io/BufferedOutputStream.hxx" #include "time/ChronoUtil.hxx" +#include "util/StringAPI.hxx" #include "util/StringCompare.hxx" #include "util/NumberParser.hxx" #include "util/RuntimeError.hxx" @@ -58,9 +59,9 @@ gcc_pure static unsigned ParseTypeString(const char *type) noexcept { - if (strcmp(type, "archive") == 0) + if (StringIsEqual(type, "archive")) return DEVICE_INARCHIVE; - else if (strcmp(type, "container") == 0) + else if (StringIsEqual(type, "container")) return DEVICE_CONTAINER; else return 0; |