diff options
| author | 2021-04-04 23:42:15 +0100 | |
|---|---|---|
| committer | 2021-04-04 23:42:15 +0100 | |
| commit | 7d84e4900fa8f4ef96e8cf4bb67b76be7902e840 (patch) | |
| tree | f5a81d03f572392e7547d58f979fdd488de6ff0b /src/modules/m_sha2.cpp | |
| parent | Remove the unused ExitCodes array. (diff) | |
Fix a ton of pedantic compiler warnings.
Diffstat (limited to 'src/modules/m_sha2.cpp')
| -rw-r--r-- | src/modules/m_sha2.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_sha2.cpp b/src/modules/m_sha2.cpp index 3c3560d5c..e3ad8a6f7 100644 --- a/src/modules/m_sha2.cpp +++ b/src/modules/m_sha2.cpp @@ -23,7 +23,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -/// $CompilerFlags: -Ivendor_directory("sha2") +/// $CompilerFlags: -isystem vendor_directory("sha2") #include "inspircd.h" @@ -43,7 +43,7 @@ class HashSHA2 : public HashProvider std::string GenerateRaw(const std::string& data) override { std::vector<char> bytes(out_size); - SHA((unsigned char*)data.data(), data.size(), (unsigned char*)&bytes[0]); + SHA(reinterpret_cast<const unsigned char*>(data.data()), data.size(), reinterpret_cast<unsigned char*>(&bytes[0])); return std::string(&bytes[0], bytes.size()); } }; |
