diff options
author | lloyd <[email protected]> | 2014-11-12 01:23:55 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2014-11-12 01:23:55 +0000 |
commit | 8b0cbccc7b11e545ed27bc6d7bda04b5cf632e60 (patch) | |
tree | 7ea9368d6ccaa85337a63b55e8bd15efa46fd357 /src/cmd/factor.cpp | |
parent | 67161b91163afad417f9483cb557b26c5f5f4bc0 (diff) |
Command line prog cleanup
Diffstat (limited to 'src/cmd/factor.cpp')
-rw-r--r-- | src/cmd/factor.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/cmd/factor.cpp b/src/cmd/factor.cpp index 5f6d82f8c..b95b8ea95 100644 --- a/src/cmd/factor.cpp +++ b/src/cmd/factor.cpp @@ -11,12 +11,13 @@ #include <botan/reducer.h> #include <botan/numthry.h> -using namespace Botan; #include <algorithm> #include <iostream> #include <iterator> +using namespace Botan; + namespace { /* @@ -119,9 +120,7 @@ std::vector<BigInt> factorize(const BigInt& n_in, return factors; } -} - -int factor_main(int argc, char* argv[]) +int factor(int argc, char* argv[]) { if(argc != 2) { @@ -151,3 +150,7 @@ int factor_main(int argc, char* argv[]) } return 0; } + +REGISTER_APP(factor); + +} |