Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/tc MALLOC() -> malloc()



details:   https://anonhg.NetBSD.org/src/rev/6b20b1574f99
branches:  trunk
changeset: 746888:6b20b1574f99
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sat Aug 22 17:36:12 2009 +0000

description:
MALLOC() -> malloc()

diffstat:

 sys/dev/tc/sfbplus.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (28 lines):

diff -r f3c7eb6669e7 -r 6b20b1574f99 sys/dev/tc/sfbplus.c
--- a/sys/dev/tc/sfbplus.c      Sat Aug 22 17:19:11 2009 +0000
+++ b/sys/dev/tc/sfbplus.c      Sat Aug 22 17:36:12 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sfbplus.c,v 1.31 2008/07/09 13:19:33 joerg Exp $ */
+/* $NetBSD: sfbplus.c,v 1.32 2009/08/22 17:36:12 tsutsui Exp $ */
 
 /*-
  * Copyright (c) 1999, 2000, 2001 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sfbplus.c,v 1.31 2008/07/09 13:19:33 joerg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sfbplus.c,v 1.32 2009/08/22 17:36:12 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -263,8 +263,7 @@
                sc->nscreens = 1;
        }
        else {
-               MALLOC(ri, struct rasops_info *, sizeof(struct rasops_info),
-                       M_DEVBUF, M_NOWAIT);
+               ri = malloc(sizeof(struct rasops_info), M_DEVBUF, M_NOWAIT);
                if (ri == NULL) {
                        printf(": can't alloc memory\n");
                        return;



Home | Main Index | Thread Index | Old Index