Skip to content

Commit

Permalink
Clean: misc
Browse files Browse the repository at this point in the history
  • Loading branch information
sgliner-ledger committed Jan 31, 2024
1 parent b609f15 commit ec8530f
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 11 deletions.
2 changes: 0 additions & 2 deletions include/btchip.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@
#include "stdbool.h"
#include "string.h"

#define L_DEBUG_NOPREFIX(x)

#define SW_TECHNICAL_DETAILS(x) BTCHIP_SW_TECHNICAL_PROBLEM

/**
Expand Down
5 changes: 1 addition & 4 deletions src/btchip_apdu_get_coin_version.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@
#include "btchip_internal.h"
#include "btchip_apdu_constants.h"

#define P1_VERSION_ONLY 0x00
#define P1_VERSION_COINID 0x01

unsigned short btchip_apdu_get_coin_version() {
unsigned short btchip_apdu_get_coin_version(void) {
uint8_t offset = 0;

G_io_apdu_buffer[offset++] = COIN_P2PKH_VERSION >> 8;
Expand Down
2 changes: 1 addition & 1 deletion src/btchip_apdu_get_wallet_public_key.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ int get_public_key_chain_code(unsigned char* keyPath, size_t keyPath_len, unsign
return keyLength;
}

unsigned short btchip_apdu_get_wallet_public_key() {
unsigned short btchip_apdu_get_wallet_public_key(void) {
unsigned char keyLength;
uint32_t request_token;
unsigned char chainCode[32];
Expand Down
4 changes: 0 additions & 4 deletions src/btchip_context.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ void btchip_context_init() {
btchip_context_D.changeOutputFound = 0;
btchip_context_D.segwitWarningSeen = 0;

if (N_btchip.config_valid != 0x01) {
btchip_autosetup();
}

if (!N_btchip.storageInitialized) {
unsigned char initialized = 1, denied=1;

Expand Down

0 comments on commit ec8530f

Please sign in to comment.