1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 23:48:12 +00:00

fix usage of inline/static

This commit is contained in:
Pavol Rusnak 2016-02-15 15:29:19 +01:00
parent 28651bd966
commit 7675a0aa5f
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
2 changed files with 4 additions and 4 deletions

View File

@ -139,7 +139,7 @@ static uint8_t msg_debug_out[MSG_DEBUG_OUT_SIZE];
#endif #endif
inline void msg_out_append(uint8_t c) static inline void msg_out_append(uint8_t c)
{ {
if (msg_out_cur == 0) { if (msg_out_cur == 0) {
msg_out[msg_out_end * 64] = '?'; msg_out[msg_out_end * 64] = '?';
@ -155,7 +155,7 @@ inline void msg_out_append(uint8_t c)
#if DEBUG_LINK #if DEBUG_LINK
inline void msg_debug_out_append(uint8_t c) static inline void msg_debug_out_append(uint8_t c)
{ {
if (msg_debug_out_cur == 0) { if (msg_debug_out_cur == 0) {
msg_debug_out[msg_debug_out_end * 64] = '?'; msg_debug_out[msg_debug_out_end * 64] = '?';
@ -171,7 +171,7 @@ inline void msg_debug_out_append(uint8_t c)
#endif #endif
inline void msg_out_pad(void) static inline void msg_out_pad(void)
{ {
if (msg_out_cur == 0) return; if (msg_out_cur == 0) return;
while (msg_out_cur < 64) { while (msg_out_cur < 64) {

2
util.h
View File

@ -22,7 +22,7 @@
#include <stdint.h> #include <stdint.h>
inline void delay(uint32_t wait); void delay(uint32_t wait);
// converts uint32 to hexa (8 digits) // converts uint32 to hexa (8 digits)
void uint32hex(uint32_t num, char *str); void uint32hex(uint32_t num, char *str);