iob_trimhead: fix an integer truncation

I guess this fixes https://github.com/apache/incubator-nuttx/issues/4181
This commit is contained in:
YAMAMOTO Takashi 2021-07-20 14:04:31 +09:00 committed by archer
parent 609ee6b54b
commit 7a580ae3bc

View File

@ -55,7 +55,7 @@
FAR struct iob_s *iob_trimhead(FAR struct iob_s *iob, unsigned int trimlen,
enum iob_user_e producerid)
{
uint16_t pktlen;
unsigned int pktlen;
iobinfo("iob=%p trimlen=%d\n", iob, trimlen);