From c154dc00d7dbc4442b212fb715ae065708b50f5a Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 13 May 2024 10:35:28 +0200 Subject: [PATCH] test/run_storage: use StringIsEqual() --- test/run_storage.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/run_storage.cxx b/test/run_storage.cxx index 2dd681e03..38413a3dd 100644 --- a/test/run_storage.cxx +++ b/test/run_storage.cxx @@ -8,6 +8,7 @@ #include "net/Init.hxx" #include "time/ChronoUtil.hxx" #include "util/PrintException.hxx" +#include "util/StringAPI.hxx" #include #include @@ -112,7 +113,7 @@ try { EventThread io_thread; io_thread.Start(); - if (strcmp(command, "ls") == 0) { + if (StringIsEqual(command, "ls")) { if (argc != 4) { fprintf(stderr, "Usage: run_storage ls URI PATH\n"); return EXIT_FAILURE; @@ -124,7 +125,7 @@ try { storage_uri); return Ls(*storage, path); - } else if (strcmp(command, "stat") == 0) { + } else if (StringIsEqual(command, "stat")) { if (argc != 4) { fprintf(stderr, "Usage: run_storage stat URI PATH\n"); return EXIT_FAILURE;