[riot-notifications] [RIOT-OS/RIOT] tsrb: change input type to `uint8_t` (#11634)
notifications at github.com
Wed Jun 5 16:19:06 CEST 2019
miri64 commented on this pull request.
* @brief Initialize a tsrb.
* @param[out] rb Datum to initialize.
* @param[in] buffer Buffer to use by tsrb.
* @param[in] bufsize `sizeof (buffer)`, must be power of 2.
-static inline void tsrb_init(tsrb_t *rb, char *buffer, unsigned bufsize)
+static inline void tsrb_init(tsrb_t *rb, void *buffer, unsigned bufsize)
Porting artefact. I originally intended to make all buffers `void *`, but that would have required some additional casting to allow for the pointer arithmetics in some of the functions. Will fix.
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the notifications