Code improvements / Fix warnings
- Fix CodeQL warnings - Port lots of improvements/fixes from PR #225 - replace 'array_hexstr' and '%*H' format by sdk function 'format_hex' - Add 'noreturn' attribute in 'main.c'
This commit is contained in:
@@ -21,6 +21,9 @@
|
||||
#define _UINT_COMMON_H_
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "format.h"
|
||||
|
||||
#define UPPER_P(x) x->elements[0]
|
||||
#define LOWER_P(x) x->elements[1]
|
||||
@@ -32,4 +35,6 @@ void read_u64_be(const uint8_t *const in, uint64_t *const out);
|
||||
uint64_t readUint64BE(const uint8_t *const buffer);
|
||||
void reverseString(char *const str, uint32_t length);
|
||||
|
||||
int bytes_to_string(char *out, size_t outl, const void *value, size_t len);
|
||||
|
||||
#endif //_UINT_COMMON_H_
|
||||
|
||||
Reference in New Issue
Block a user