svn commit: r245222 - head/sys/sys
Hans Petter Selasky
hselasky at FreeBSD.org
Wed Jan 9 09:09:10 UTC 2013
Author: hselasky
Date: Wed Jan 9 09:09:09 2013
New Revision: 245222
URL: http://svnweb.freebsd.org/changeset/base/245222
Log:
Fix compile warning when using GCC:
Comparison between signed and unsigned.
MFC after: 1 week
Modified:
head/sys/sys/mbuf.h
Modified: head/sys/sys/mbuf.h
==============================================================================
--- head/sys/sys/mbuf.h Wed Jan 9 08:52:44 2013 (r245221)
+++ head/sys/sys/mbuf.h Wed Jan 9 09:09:09 2013 (r245222)
@@ -557,7 +557,7 @@ m_get2(int how, short type, int flags, i
args.flags = flags;
args.type = type;
- if (size <= MHLEN || (size <= MLEN && (flags & M_PKTHDR) == 0))
+ if (size <= ((int)MHLEN) || (size <= ((int)MLEN) && (flags & M_PKTHDR) == 0))
return ((struct mbuf *)(uma_zalloc_arg(zone_mbuf, &args, how)));
if (size <= MCLBYTES)
return ((struct mbuf *)(uma_zalloc_arg(zone_pack, &args, how)));
More information about the svn-src-all
mailing list