PERFORCE change 28941 for review

Robert Watson rwatson at FreeBSD.org
Mon Apr 14 18:37:31 GMT 2003


http://perforce.freebsd.org/chv.cgi?CH=28941

Change 28941 by rwatson at rwatson_tislabs on 2003/04/14 11:36:34

	Use MBTOM(), sync whitespace.

Affected files ...

.. //depot/projects/trustedbsd/mac/sys/kern/subr_mbuf.c#33 edit

Differences ...

==== //depot/projects/trustedbsd/mac/sys/kern/subr_mbuf.c#33 (text+ko) ====

@@ -566,13 +566,12 @@
 		return (NULL);
 
 	bucket = malloc(sizeof(struct mb_bucket) +
-	    mb_list->ml_objbucks * sizeof(void *), M_MBUF,
-	    how == M_TRYWAIT ? M_WAITOK : M_NOWAIT);
+	    mb_list->ml_objbucks * sizeof(void *), M_MBUF, MBTOM(how));
 	if (bucket == NULL)
 		return (NULL);
 
 	p = (caddr_t)kmem_malloc(mb_list->ml_map, mb_list->ml_objsize * 
-	    mb_list->ml_objbucks, how == M_TRYWAIT ? M_WAITOK : M_NOWAIT);
+	    mb_list->ml_objbucks, MBTOM(how));
 	if (p == NULL) {
 		free(bucket, M_MBUF);
 		if (how == M_TRYWAIT)
@@ -1347,7 +1346,7 @@
  *  - type: the type of the mbuf being allocated.
  */
 struct mbuf *
-m_gethdr_clrd(int  how, short type)
+m_gethdr_clrd(int how, short type)
 {
 	struct mbuf *mb;
 
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message



More information about the trustedbsd-cvs mailing list