tsrb: remove implicit cast in TEST_INIT() macro

This commit is contained in:
Martine Lenders 2019-06-05 18:05:05 +02:00
parent b1bfd70e54
commit 937d99b5c8

View File

@ -47,9 +47,7 @@ typedef struct tsrb {
/** /**
* @brief Static initializer * @brief Static initializer
*/ */
/* XXX remove this implicit cast as soon as possible (requires API change #define TSRB_INIT(BUF) { (BUF), sizeof (BUF), 0, 0 }
* to isrpipe)*/
#define TSRB_INIT(BUF) { (uint8_t *)(BUF), sizeof (BUF), 0, 0 }
/** /**
* @brief Initialize a tsrb. * @brief Initialize a tsrb.