diff options
author | Riccardo Spagni <ric@spagni.net> | 2019-03-05 10:10:57 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2019-03-05 10:10:57 +0200 |
commit | 5fb4a9719cb799ae59e04cda0a3d760be969d7e8 (patch) | |
tree | 8a7361e525f9e7e45bb04e4f252fd9a1c430d0a7 /src/device | |
parent | Merge pull request #5162 (diff) | |
parent | check load_t_from_json return values (diff) | |
download | monero-5fb4a9719cb799ae59e04cda0a3d760be969d7e8.tar.xz |
Merge pull request #5101
23abe607 check load_t_from_json return values (moneromooo-monero)
e396146a default initialize rpc structures (moneromooo-monero)
ef93b099 various: remove unused variables (moneromooo-monero)
Diffstat (limited to 'src/device')
-rw-r--r-- | src/device/device_ledger.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/device/device_ledger.cpp b/src/device/device_ledger.cpp index 1f91427f0..3c7590861 100644 --- a/src/device/device_ledger.cpp +++ b/src/device/device_ledger.cpp @@ -275,7 +275,6 @@ namespace hw { int device_ledger::set_command_header(unsigned char ins, unsigned char p1, unsigned char p2) { reset_buffer(); - int offset = 0; this->buffer_send[0] = PROTOCOL_VERSION; this->buffer_send[1] = ins; this->buffer_send[2] = p1; @@ -695,7 +694,7 @@ namespace hw { bool device_ledger::verify_keys(const crypto::secret_key &secret_key, const crypto::public_key &public_key) { AUTO_LOCK_CMD(); - int offset, sw; + int offset; offset = set_command_header_noopt(INS_VERIFY_KEY); //sec @@ -1567,7 +1566,6 @@ namespace hw { bool device_ledger::mlsag_prepare(const rct::key &H, const rct::key &xx, rct::key &a, rct::key &aG, rct::key &aHP, rct::key &II) { AUTO_LOCK_CMD(); - unsigned char options; #ifdef DEBUG_HWDEVICE const rct::key H_x = H; @@ -1611,7 +1609,6 @@ namespace hw { bool device_ledger::mlsag_prepare(rct::key &a, rct::key &aG) { AUTO_LOCK_CMD(); - unsigned char options; #ifdef DEBUG_HWDEVICE rct::key a_x; @@ -1634,7 +1631,6 @@ namespace hw { bool device_ledger::mlsag_hash(const rct::keyV &long_message, rct::key &c) { AUTO_LOCK_CMD(); - unsigned char options; size_t cnt; #ifdef DEBUG_HWDEVICE |