extmod/moducryptolib: Use "static" not "STATIC" for inline functions.

pull/1/head
Damien George 2019-08-19 22:29:24 +10:00
parent 0bd1eb80ff
commit 3327dfc16e
1 changed files with 2 additions and 2 deletions

View File

@ -89,7 +89,7 @@ typedef struct _mp_obj_aes_t {
uint8_t key_type: 2;
} mp_obj_aes_t;
STATIC inline bool is_ctr_mode(int block_mode) {
static inline bool is_ctr_mode(int block_mode) {
#if MICROPY_PY_UCRYPTOLIB_CTR
return block_mode == UCRYPTOLIB_MODE_CTR;
#else
@ -97,7 +97,7 @@ STATIC inline bool is_ctr_mode(int block_mode) {
#endif
}
STATIC inline struct ctr_params *ctr_params_from_aes(mp_obj_aes_t *o) {
static inline struct ctr_params *ctr_params_from_aes(mp_obj_aes_t *o) {
// ctr_params follows aes object struct
return (struct ctr_params*)&o[1];
}