Small cleanups.

This commit is contained in:
JoelKatz
2012-05-28 05:05:29 -07:00
parent e4a7c7677b
commit 574f86bb4d
2 changed files with 4 additions and 4 deletions

View File

@@ -52,7 +52,7 @@ int commandLineRPC(const std::vector<std::string>& vCmd)
int nRet = 0; int nRet = 0;
try try
{ {
if (!vCmd.size()) return 1; if (vCmd.empty()) return 1;
std::string strMethod = vCmd[0]; std::string strMethod = vCmd[0];

View File

@@ -31,7 +31,7 @@
int static inline EC_KEY_regenerate_key(EC_KEY *eckey, BIGNUM *priv_key) int static inline EC_KEY_regenerate_key(EC_KEY *eckey, BIGNUM *priv_key)
{ {
int ok = 0; int okay = 0;
BN_CTX *ctx = NULL; BN_CTX *ctx = NULL;
EC_POINT *pub_key = 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_private_key(eckey, priv_key);
EC_KEY_set_public_key(eckey, pub_key); EC_KEY_set_public_key(eckey, pub_key);
ok = 1; okay = 1;
err: err:
@@ -63,7 +63,7 @@ err:
if (ctx != NULL) if (ctx != NULL)
BN_CTX_free(ctx); BN_CTX_free(ctx);
return(ok); return (okay);
} }