refactor(legacy): fix empty parameter list warnings

[no changelog]
pull/3685/head
Ondřej Vejpustek 1 month ago
parent ab44764959
commit e3cbc0f618

@ -25,7 +25,7 @@ struct buttonState button;
uint16_t buttonRead(void) { return gpio_port_read(BTN_PORT); }
#endif
void buttonUpdate() {
void buttonUpdate(void) {
static uint16_t last_state = BTN_PIN_YES | BTN_PIN_NO;
uint16_t state = buttonRead();

@ -96,7 +96,7 @@ void hal_delay(uint32_t ms) {
#endif
}
void drbg_init() {
void drbg_init(void) {
uint8_t entropy[48] = {0};
random_buffer(entropy, sizeof(entropy));
hmac_drbg_init(&drbg_ctx, entropy, sizeof(entropy), NULL, 0);

@ -979,7 +979,7 @@ void config_setU2FCounter(uint32_t u2fcounter) {
storage_set_counter(KEY_U2F_COUNTER, u2fcounter);
}
uint32_t config_getAutoLockDelayMs() {
uint32_t config_getAutoLockDelayMs(void) {
if (sectrue == autoLockDelayMsCached) {
return autoLockDelayMs;
}

@ -538,7 +538,7 @@ void fsm_msgSetU2FCounter(const SetU2FCounter *msg) {
layoutHome();
}
void fsm_msgGetNextU2FCounter() {
void fsm_msgGetNextU2FCounter(void) {
CHECK_PIN
layoutDialogSwipe(&bmp_icon_question, _("Cancel"), _("Confirm"), NULL,

@ -1349,7 +1349,7 @@ void stellar_fillSignedTx(StellarSignedTx *resp) {
resp->signature.size = sizeof(signature);
}
bool stellar_allOperationsConfirmed() {
bool stellar_allOperationsConfirmed(void) {
return stellar_activeTx.confirmed_operations ==
stellar_activeTx.num_operations;
}

@ -177,9 +177,9 @@ void oledInit() {
/*
* Clears the display buffer (sets all pixels to black)
*/
void oledClear() { memzero(_oledbuffer, sizeof(_oledbuffer)); }
void oledClear(void) { memzero(_oledbuffer, sizeof(_oledbuffer)); }
void oledInvertDebugLink() {
void oledInvertDebugLink(void) {
#if DEBUG_LINK
oledInvertPixel(OLED_WIDTH - 5, 0);
oledInvertPixel(OLED_WIDTH - 4, 0);
@ -229,7 +229,7 @@ void oledRefresh() {
}
#endif
const uint8_t *oledGetBuffer() { return _oledbuffer; }
const uint8_t *oledGetBuffer(void) { return _oledbuffer; }
void oledSetBuffer(uint8_t *buf) {
memcpy(_oledbuffer, buf, sizeof(_oledbuffer));

Loading…
Cancel
Save