Use restrict on pointers where it makes sense. (requires C99 support,
which we already assume)
This commit is contained in:
@@ -125,7 +125,7 @@ struct MBuf *uc_mbuf_copy_data(struct MBuf *mbuf);
|
||||
* @param headroom the headroom in the buffer
|
||||
* @param flags The appropriate UC_MBUF_FLAGS
|
||||
*/
|
||||
void uc_mbuf_init(struct MBuf *mbuf, uint8_t *buf, uint32_t len, uint32_t headroom, uint32_t flags);
|
||||
void uc_mbuf_init(struct MBuf *mbuf, uint8_t *restrict buf, uint32_t len, uint32_t headroom, uint32_t flags);
|
||||
|
||||
/** Zero out all the data in this mbuf, including the headroom
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user