In mbuf(9) API length is always integer. Thus, cast mbuf length

constants to be integers.

Reviewed by:	bde
This commit is contained in:
Gleb Smirnoff 2013-01-25 11:52:56 +00:00
parent 03d37d34cc
commit a9282368ca
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=245905

View File

@ -52,11 +52,14 @@
* stored. Additionally, it is possible to allocate a separate buffer
* externally and attach it to the mbuf in a way similar to that of mbuf
* clusters.
*
* MLEN is data length in a normal mbuf.
* MHLEN is data length in an mbuf with pktheader.
* MINCLSIZE is a smallest amount of data that should be put into cluster.
*/
#define MLEN (MSIZE - sizeof(struct m_hdr)) /* normal data len */
#define MHLEN (MLEN - sizeof(struct pkthdr)) /* data len w/pkthdr */
#define MINCLSIZE (MHLEN + 1) /* smallest amount to put in cluster */
#define M_MAXCOMPRESS (MHLEN / 2) /* max amount to copy for compression */
#define MLEN ((int)(MSIZE - sizeof(struct m_hdr)))
#define MHLEN ((int)(MLEN - sizeof(struct pkthdr)))
#define MINCLSIZE (MHLEN + 1)
#ifdef _KERNEL
/*-