summaryrefslogtreecommitdiff
path: root/selftest.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2015-05-17 23:56:47 +0000
committerAdam Ierymenko <adam.ierymenko@gmail.com>2015-05-17 23:56:47 +0000
commit2810cd7c156393f62c36ae01ba8099766e8dc777 (patch)
treeecdb96064384d633804e486c2224962fa78bf18c /selftest.cpp
parent0af18b164c0290b4cf65ffcf388563c330d18239 (diff)
downloadinfinitytier-2810cd7c156393f62c36ae01ba8099766e8dc777.tar.gz
infinitytier-2810cd7c156393f62c36ae01ba8099766e8dc777.zip
Build fixes for G++, building without SQLite3 present, and warning removal.
Diffstat (limited to 'selftest.cpp')
-rw-r--r--selftest.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/selftest.cpp b/selftest.cpp
index 5d5067fd..3c7b0257 100644
--- a/selftest.cpp
+++ b/selftest.cpp
@@ -510,16 +510,14 @@ static int testCertificate()
static int testPacket()
{
- unsigned char salsaKey[32],hmacKey[32];
+ unsigned char salsaKey[32];
Packet a,b;
a.burn();
b.burn();
- for(unsigned int i=0;i<32;++i) {
+ for(unsigned int i=0;i<32;++i)
salsaKey[i] = (unsigned char)rand();
- hmacKey[i] = (unsigned char)rand();
- }
std::cout << "[packet] Testing Packet encoder/decoder... ";