]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
chore: Fix typos
authorJoel Rosdahl <joel@rosdahl.net>
Wed, 8 Mar 2023 19:24:25 +0000 (20:24 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Sat, 11 Mar 2023 12:41:33 +0000 (13:41 +0100)
src/Config.cpp
src/Config.hpp

index f0525add153ffe2f8d50c9852bae89f531af1229..1707da01dbee263f258e6f2950bb5d842e35f21a 100644 (file)
@@ -792,7 +792,7 @@ Config::get_string_value(const std::string& key) const
     return FMT("{}", m_max_files);
 
   case ConfigItem::max_size:
-    return format_cache_size(m_max_size, m_size_suffix_type);
+    return format_cache_size(m_max_size, m_size_prefix_type);
 
   case ConfigItem::msvc_dep_prefix:
     return m_msvc_dep_prefix;
@@ -1040,7 +1040,7 @@ Config::set_item(const std::string& key,
     const auto [size, prefix_type] =
       util::value_or_throw<core::Error>(util::parse_size(value));
     m_max_size = size;
-    m_size_suffix_type = prefix_type;
+    m_size_prefix_type = prefix_type;
     break;
   }
 
index 905696679502a0cf7d0f88d63f39e481e4617d51..cc489cf365da7d9759c1290d43be3eeaa4a34aae 100644 (file)
@@ -212,7 +212,7 @@ private:
   std::optional<mode_t> m_umask;
 
   bool m_temporary_dir_configured_explicitly = false;
-  util::SizeUnitPrefixType m_size_suffix_type =
+  util::SizeUnitPrefixType m_size_prefix_type =
     util::SizeUnitPrefixType::binary;
 
   std::unordered_map<std::string /*key*/, std::string /*origin*/> m_origins;
@@ -500,7 +500,7 @@ Config::umask() const
 inline util::SizeUnitPrefixType
 Config::size_unit_prefix_type() const
 {
-  return m_size_suffix_type;
+  return m_size_prefix_type;
 }
 
 inline void