Closed mfrey closed 5 years ago
The buffer in ccnl-buf.h is defined as follows
31 struct ccnl_buf_s { 32 struct ccnl_buf_s *next; 33 ssize_t datalen; 34 unsigned char data[1]; 35 }; 36
Since we don't have any use-case where we might use a negative size of the buffer (datalen), the type of the length of the buffer should be size_t.
datalen
size_t
Description
The buffer in ccnl-buf.h is defined as follows
Since we don't have any use-case where we might use a negative size of the buffer (
datalen
), the type of the length of the buffer should besize_t
.