Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern fix number of arguments of kmem_alloc and kmem_zall...



details:   https://anonhg.NetBSD.org/src/rev/f02d20d47618
branches:  trunk
changeset: 821700:f02d20d47618
user:      zafer <zafer%NetBSD.org@localhost>
date:      Mon Feb 13 16:53:41 2017 +0000

description:
fix number of arguments of kmem_alloc and kmem_zalloc macro. ok skrll.

diffstat:

 sys/kern/subr_blist.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 680a01e74bf1 -r f02d20d47618 sys/kern/subr_blist.c
--- a/sys/kern/subr_blist.c     Mon Feb 13 16:33:14 2017 +0000
+++ b/sys/kern/subr_blist.c     Mon Feb 13 16:53:41 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: subr_blist.c,v 1.12 2013/12/09 09:35:17 wiz Exp $      */
+/*     $NetBSD: subr_blist.c,v 1.13 2017/02/13 16:53:41 zafer Exp $    */
 
 /*-
  * Copyright (c) 1998 Matthew Dillon.  All Rights Reserved.
@@ -86,7 +86,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_blist.c,v 1.12 2013/12/09 09:35:17 wiz Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_blist.c,v 1.13 2017/02/13 16:53:41 zafer Exp $");
 #if 0
 __FBSDID("$FreeBSD: src/sys/kern/subr_blist.c,v 1.17 2004/06/04 04:03:25 alc Exp $");
 #endif
@@ -112,8 +112,8 @@
 #include <inttypes.h>
 
 #define        KM_SLEEP 1
-#define        kmem_zalloc(a,b,c) calloc(1, (a))
-#define        kmem_alloc(a,b,c) malloc(a)
+#define        kmem_zalloc(a,b) calloc(1, (a))
+#define        kmem_alloc(a,b) malloc(a)
 #define        kmem_free(a,b) free(a)
 
 #include "../sys/blist.h"



Home | Main Index | Thread Index | Old Index