[riot-notifications] [RIOT-OS/RIOT] tsrb: change input type to `uint8_t` (#11634)

Kaspar Schleiser notifications at github.com
Wed Jun 5 16:53:28 CEST 2019

kaspar030 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)

Yes please. Users of tsrb will have to touch their code anyways with this API change, so let's go uint8_t all the way. Easier to say "all buffer parameters are now uint8_t".

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...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190605/4357f8d1/attachment.html>

More information about the notifications mailing list