From 74b15a1fe3be3bd549e5fdbfbaf0b64db48a7a76 Mon Sep 17 00:00:00 2001 From: Timo Weingärtner Date: Tue, 11 May 2021 13:38:09 +0200 Subject: apply some more const --- ssh-agent-filter.C | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ssh-agent-filter.C b/ssh-agent-filter.C index b806a85..fbeb85f 100644 --- a/ssh-agent-filter.C +++ b/ssh-agent-filter.C @@ -245,16 +245,16 @@ void setup_filters () { throw runtime_error{"unexpected answer from ssh-agent"}; rfc4251::uint32 const keycount{answer_iss}; for (uint32_t i = keycount; i; --i) { - rfc4251::string key{answer_iss}; - rfc4251::string comment{answer_iss}; + rfc4251::string key{answer_iss}; + rfc4251::string const comment{answer_iss}; - auto b64 = base64_encode(key); + auto const b64 = base64_encode(key); if (debug) clog << b64 << endl; - auto md5 = md5_hex(key); + auto const md5 = md5_hex(key); if (debug) clog << md5 << endl; - string comm(comment); + string comm{comment}; if (debug) clog << comm << endl; bool allow{false}; -- cgit v1.2.3