-/* $NetBSD: types.c,v 1.5 1997/05/23 23:09:44 jtc Exp $ */
+/* $NetBSD: types.c,v 1.8 2003/08/07 09:37:26 agc Exp $ */
/*
* Copyright (c) 1982, 1993
* 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 University of
- * California, Berkeley and its contributors.
- * 4. Neither the name of the University nor the names of its contributors
+ * 3. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* SUCH DAMAGE.
*/
+#include <sys/cdefs.h>
#ifndef lint
#if 0
static char sccsid[] = "@(#)types.c 8.1 (Berkeley) 5/31/93";
#else
-static char rcsid[] = "$NetBSD: types.c,v 1.5 1997/05/23 23:09:44 jtc Exp $";
+__RCSID("$NetBSD: types.c,v 1.8 2003/08/07 09:37:26 agc Exp $");
#endif
#endif /* not lint */
* @(#)types.c 1.1 (Berkeley) 4/1/82
*/
-isrepair(card)
-register CARD card;
+int
+is_repair(card)
+ CARD card;
{
- return card == C_GAS || card == C_SPARE || card == C_REPAIRS || card == C_INIT;
+ return card == C_GAS || card == C_SPARE ||
+ card == C_REPAIRS || card == C_INIT;
}
+int
safety(card)
-register CARD card;
+ CARD card;
{
switch (card) {
case C_EMPTY:
return C_RIGHT_WAY;
}
/* NOTREACHED */
+ return(0);
}
-