aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorlloyd <[email protected]>2014-01-07 12:25:09 +0000
committerlloyd <[email protected]>2014-01-07 12:25:09 +0000
commit14ea6e48d1ed916b2e36a16eb44862a89fb1fd3c (patch)
treed3463b3426c06196b684eea5c49d65fd81d951b4 /src/tests
parent83f69bcad312352b9d20fbfda183ddba62ed861e (diff)
Fix warnings
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/kat_bigint.cpp1
-rw-r--r--src/tests/nist_x509.cpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/tests/kat_bigint.cpp b/src/tests/kat_bigint.cpp
index fe63f8b85..b71e0af2d 100644
--- a/src/tests/kat_bigint.cpp
+++ b/src/tests/kat_bigint.cpp
@@ -126,6 +126,7 @@ size_t test_make_prime()
std::cout << "Missing " << PRIMES[j] << "\n";
}
*/
+ return 0;
}
// c==expected, d==a op b, e==a op= b
diff --git a/src/tests/nist_x509.cpp b/src/tests/nist_x509.cpp
index 4f75c9f88..ce2a587f7 100644
--- a/src/tests/nist_x509.cpp
+++ b/src/tests/nist_x509.cpp
@@ -193,7 +193,7 @@ std::vector<std::string> dir_listing(const std::string& dir_name)
{
struct dirent* dir_ent = readdir(dir);
- if(dir_ent == 0)
+ if(!dir_ent)
break;
const std::string entry = dir_ent->d_name;
if(entry == "." || entry == "..")