Commit 5dc7cb87 authored by Max Kellermann's avatar Max Kellermann

db/simple/DirectorySave: use StringIsEqual()

parent f885e068
......@@ -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;
......
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