db/simple/DirectorySave: use StringIsEqual()
This commit is contained in:
parent
f885e068c8
commit
5dc7cb87bb
@ -26,6 +26,7 @@
|
|||||||
#include "fs/io/TextFile.hxx"
|
#include "fs/io/TextFile.hxx"
|
||||||
#include "fs/io/BufferedOutputStream.hxx"
|
#include "fs/io/BufferedOutputStream.hxx"
|
||||||
#include "time/ChronoUtil.hxx"
|
#include "time/ChronoUtil.hxx"
|
||||||
|
#include "util/StringAPI.hxx"
|
||||||
#include "util/StringCompare.hxx"
|
#include "util/StringCompare.hxx"
|
||||||
#include "util/NumberParser.hxx"
|
#include "util/NumberParser.hxx"
|
||||||
#include "util/RuntimeError.hxx"
|
#include "util/RuntimeError.hxx"
|
||||||
@ -58,9 +59,9 @@ gcc_pure
|
|||||||
static unsigned
|
static unsigned
|
||||||
ParseTypeString(const char *type) noexcept
|
ParseTypeString(const char *type) noexcept
|
||||||
{
|
{
|
||||||
if (strcmp(type, "archive") == 0)
|
if (StringIsEqual(type, "archive"))
|
||||||
return DEVICE_INARCHIVE;
|
return DEVICE_INARCHIVE;
|
||||||
else if (strcmp(type, "container") == 0)
|
else if (StringIsEqual(type, "container"))
|
||||||
return DEVICE_CONTAINER;
|
return DEVICE_CONTAINER;
|
||||||
else
|
else
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user