X-Git-Url: https://git.cameronkatri.com/bsdgames-darwin.git/blobdiff_plain/d6237184f66652f05e744b26749cb40605e3af0b..2c922baaa93dfa561986acace5008e7d78d8c1fb:/dab/board.cc diff --git a/dab/board.cc b/dab/board.cc index dcded524..b8340a04 100644 --- a/dab/board.cc +++ b/dab/board.cc @@ -1,4 +1,4 @@ -/* $NetBSD: board.cc,v 1.2 2005/08/09 02:38:32 christos Exp $ */ +/* $NetBSD: board.cc,v 1.4 2008/04/28 20:22:53 martin Exp $ */ /*- * Copyright (c) 2003 The NetBSD Foundation, Inc. @@ -15,13 +15,6 @@ * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the NetBSD - * Foundation, Inc. and its contributors. - * 4. Neither the name of The NetBSD Foundation nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED @@ -40,7 +33,7 @@ * board.C: Board manipulations */ #include "defs.h" -RCSID("$NetBSD: board.cc,v 1.2 2005/08/09 02:38:32 christos Exp $") +RCSID("$NetBSD: board.cc,v 1.4 2008/04/28 20:22:53 martin Exp $") #include #include @@ -77,7 +70,7 @@ BOARD::BOARD(const BOARD& b) : for (size_t y = 0; y < _ty; y++) { _b[y] = new int[_tx]; - (void) memcpy(_b[y], b._b[y], _tx * sizeof(int)); + static_cast(memcpy(_b[y], b._b[y], _tx * sizeof(int))); } }