summaryrefslogtreecommitdiff
path: root/indra/llmessage/llxorcipher.cpp
diff options
context:
space:
mode:
authorLars Næsbye Christensen <lars@naesbye.dk>2024-02-18 16:41:22 +0100
committerAndrey Lihatskiy <alihatskiy@productengine.com>2024-02-18 22:04:44 +0200
commitf1c97f4057833220a2e9ac045d701208e30457d1 (patch)
tree1b41e67347d15b1ad4e4e0ca47e0b6c7c0fd8a52 /indra/llmessage/llxorcipher.cpp
parent2817d6c67d65bee9cae8f0d77e229ccf8eaa286f (diff)
misc: BOOL to bool
Diffstat (limited to 'indra/llmessage/llxorcipher.cpp')
-rw-r--r--indra/llmessage/llxorcipher.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/llmessage/llxorcipher.cpp b/indra/llmessage/llxorcipher.cpp
index 9053e1b2f1..17651b1ecf 100644
--- a/indra/llmessage/llxorcipher.cpp
+++ b/indra/llmessage/llxorcipher.cpp
@@ -109,7 +109,7 @@ void LLXORCipher::init(const U8* pad, U32 pad_len)
#ifdef _DEBUG
// static
-BOOL LLXORCipher::testHarness()
+bool LLXORCipher::testHarness()
{
const U32 PAD_LEN = 3;
const U8 PAD[] = "abc";
@@ -122,7 +122,7 @@ BOOL LLXORCipher::testHarness()
cipher.encrypt((U8*)MESSAGE, MSG_LENGTH, encrypted, MSG_LENGTH);
cipher.decrypt(encrypted, MSG_LENGTH, decrypted, MSG_LENGTH);
- if(0 != memcmp((void*)MESSAGE, decrypted, MSG_LENGTH)) return FALSE;
- return TRUE;
+ if(0 != memcmp((void*)MESSAGE, decrypted, MSG_LENGTH)) return false;
+ return true;
}
#endif