svn commit: r354231 - head/sys/net
Vincenzo Maffione
vmaffione at FreeBSD.org
Thu Oct 31 22:16:21 UTC 2019
Author: vmaffione
Date: Thu Oct 31 22:16:20 2019
New Revision: 354231
URL: https://svnweb.freebsd.org/changeset/base/354231
Log:
netmap: fix build issue in netmap_user.h
The issue was a comparison of integers of different signs
on 32 bit architectures.
Reported by: jenkins
MFC after: 1 week
Modified:
head/sys/net/netmap_user.h
Modified: head/sys/net/netmap_user.h
==============================================================================
--- head/sys/net/netmap_user.h Thu Oct 31 21:32:59 2019 (r354230)
+++ head/sys/net/netmap_user.h Thu Oct 31 22:16:20 2019 (r354231)
@@ -1116,7 +1116,7 @@ nm_dispatch(struct nm_desc *d, int cnt, nm_cb_t cb, u_
slot = &ring->slot[i];
d->hdr.len += slot->len;
nbuf = (u_char *)NETMAP_BUF(ring, slot->buf_idx);
- if (oldbuf != NULL && nbuf - oldbuf == ring->nr_buf_size &&
+ if (oldbuf != NULL && nbuf - oldbuf == (int)ring->nr_buf_size &&
oldlen == ring->nr_buf_size) {
d->hdr.caplen += slot->len;
oldbuf = nbuf;
More information about the svn-src-all
mailing list