aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/bench.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-03-03 02:02:48 +0000
committerlloyd <[email protected]>2010-03-03 02:02:48 +0000
commit82ab6d27cc2b434b4b7ffa528396d67fe6993222 (patch)
tree6be9207091acf15df1936ab072a2562c7f111ff9 /doc/examples/bench.cpp
parenta0d6ce4ce5ccb0108cdd155c7abd830432dc6991 (diff)
Fix minor errors and warnings in the examples. Remove boost dependency from
rng_test example.
Diffstat (limited to 'doc/examples/bench.cpp')
-rw-r--r--doc/examples/bench.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/examples/bench.cpp b/doc/examples/bench.cpp
index 87a537493..3bcfbf5f3 100644
--- a/doc/examples/bench.cpp
+++ b/doc/examples/bench.cpp
@@ -13,6 +13,8 @@ using namespace Botan;
#include <iostream>
+namespace {
+
const std::string algos[] = {
"AES-128",
"AES-192",
@@ -85,6 +87,8 @@ void benchmark_algo(const std::string& algo,
std::cout << "\n";
}
+}
+
int main(int argc, char* argv[])
{
LibraryInitializer init;