summaryrefslogtreecommitdiff
path: root/modules/commands/os_logsearch.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-01-08 13:06:23 +0000
committerSadie Powell <sadie@witchery.services>2024-01-08 13:11:50 +0000
commitf083795c79fc062951d0253b4babf7e3b48c6ccb (patch)
treed40d77a317f31e7d8acb6db3df85dbd3e3efbda9 /modules/commands/os_logsearch.cpp
parent5db79c1e242d4c06d1aeb2b09f99b8254b7fb5de (diff)
Fix various format string issues.
Diffstat (limited to 'modules/commands/os_logsearch.cpp')
-rw-r--r--modules/commands/os_logsearch.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/commands/os_logsearch.cpp b/modules/commands/os_logsearch.cpp
index 9293feffa..cec0d0b50 100644
--- a/modules/commands/os_logsearch.cpp
+++ b/modules/commands/os_logsearch.cpp
@@ -127,7 +127,7 @@ public:
fd.close();
}
- unsigned int found = matches.size();
+ size_t found = matches.size();
if (!found)
{
source.Reply(_("No matches for \002%s\002 found."), search_string.c_str());
@@ -146,10 +146,10 @@ public:
}
source.Reply(_("Matches for \002%s\002:"), search_string.c_str());
- unsigned int count = 0;
+ size_t count = 0;
for (const auto &match : matches)
- source.Reply("#%d: %s", ++count, match.c_str());
- source.Reply(_("Showed %d/%d matches for \002%s\002."), matches.size(), found, search_string.c_str());
+ source.Reply("#%zu: %s", ++count, match.c_str());
+ source.Reply(_("Showed %zu/%zu matches for \002%s\002."), matches.size(), found, search_string.c_str());
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand) override