From 574f86bb4dabd0009e43de2e43f57b84722cdfec Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Mon, 28 May 2012 05:05:29 -0700 Subject: [PATCH] Small cleanups. --- src/CallRPC.cpp | 2 +- src/key.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/CallRPC.cpp b/src/CallRPC.cpp index 519b07f7e5..dc2dbe8ee7 100644 --- a/src/CallRPC.cpp +++ b/src/CallRPC.cpp @@ -52,7 +52,7 @@ int commandLineRPC(const std::vector& vCmd) int nRet = 0; try { - if (!vCmd.size()) return 1; + if (vCmd.empty()) return 1; std::string strMethod = vCmd[0]; diff --git a/src/key.h b/src/key.h index add1e39b51..b9fcd775cb 100644 --- a/src/key.h +++ b/src/key.h @@ -31,7 +31,7 @@ int static inline EC_KEY_regenerate_key(EC_KEY *eckey, BIGNUM *priv_key) { - int ok = 0; + int okay = 0; BN_CTX *ctx = NULL; EC_POINT *pub_key = NULL; @@ -54,7 +54,7 @@ int static inline EC_KEY_regenerate_key(EC_KEY *eckey, BIGNUM *priv_key) EC_KEY_set_private_key(eckey, priv_key); EC_KEY_set_public_key(eckey, pub_key); - ok = 1; + okay = 1; err: @@ -63,7 +63,7 @@ err: if (ctx != NULL) BN_CTX_free(ctx); - return(ok); + return (okay); }