+/* $NetBSD: capture.c,v 1.5 1999/09/08 21:45:32 jsm 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[] = "from: @(#)capture.c 5.4 (Berkeley) 6/1/90";*/
-static char rcsid[] = "$Id: capture.c,v 1.2 1993/08/01 18:50:51 mycroft Exp $";
+#if 0
+static char sccsid[] = "@(#)capture.c 8.1 (Berkeley) 5/31/93";
+#else
+__RCSID("$NetBSD: capture.c,v 1.5 1999/09/08 21:45:32 jsm Exp $");
+#endif
#endif /* not lint */
-# include "trek.h"
+#include <stdio.h>
+#include "trek.h"
/*
** Ask a Klingon To Surrender
** etc.
*/
-capture()
+/*ARGSUSED*/
+void
+capture(v)
+ int v __attribute__((__unused__));
{
- register int i;
- register struct kling *k;
+ int i;
+ struct kling *k;
double x;
- extern struct kling *selectklingon();
/* check for not cloaked */
if (Ship.cloaked)
printf("Ship-ship communications out when cloaked\n");
return;
}
- if (damaged(SSRADIO))
- return (out(SSRADIO));
+ if (damaged(SSRADIO)) {
+ out(SSRADIO);
+ return;
+ }
/* find out if there are any at all */
if (Etc.nkling <= 0)
{
struct kling *selectklingon()
{
- register int i;
+ int i;
if (Etc.nkling < 2)
i = 0;