/*
* Returns the number of bytes remaining to be read in the PACKET
*/
-__owur static inline size_t PACKET_remaining(const PACKET *pkt)
+static inline size_t PACKET_remaining(const PACKET *pkt)
{
return pkt->remaining;
}
* copy of the data so |buf| must be present for the whole time that the PACKET
* is being used.
*/
-static inline int PACKET_buf_init(PACKET *pkt, unsigned char *buf, size_t len)
+__owur static inline int PACKET_buf_init(PACKET *pkt, unsigned char *buf,
+ size_t len)
{
/* Sanity check for negative values. */
if (buf + len < buf)
if (PACKET_remaining(pkt) < len)
return 0;
- PACKET_buf_init(subpkt, pkt->curr, len);
-
- return 1;
+ return PACKET_buf_init(subpkt, pkt->curr, len);
}
/*