+/* $NetBSD: ram.c,v 1.4 1997/10/12 21:25:08 christos Exp $ */
+
/*
- * Copyright (c) 1980 Regents of the University of California.
- * All rights reserved.
+ * Copyright (c) 1980, 1993
+ * The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* SUCH DAMAGE.
*/
+#include <sys/cdefs.h>
#ifndef lint
-static char sccsid[] = "@(#)ram.c 5.5 (Berkeley) 6/1/90";
+#if 0
+static char sccsid[] = "@(#)ram.c 8.1 (Berkeley) 5/31/93";
+#else
+__RCSID("$NetBSD: ram.c,v 1.4 1997/10/12 21:25:08 christos Exp $");
+#endif
#endif /* not lint */
-# include "trek.h"
+#include <stdio.h>
+#include <unistd.h>
+#include "trek.h"
/*
** RAM SOME OBJECT
** also rack up incredible damages.
*/
+void
ram(ix, iy)
int ix, iy;
{
- register int i;
- register char c;
+ int i;
+ char c;
printf("\07RED ALERT\07: collision imminent\n");
c = Sect[ix][iy];