diff options
Diffstat (limited to 'games/trek/damage.c')
-rw-r--r-- | games/trek/damage.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/games/trek/damage.c b/games/trek/damage.c index 35d05dbec87..e9981ddb0d5 100644 --- a/games/trek/damage.c +++ b/games/trek/damage.c @@ -1,3 +1,4 @@ +/* $OpenBSD: damage.c,v 1.2 1998/08/19 07:41:21 pjanzen Exp $ */ /* $NetBSD: damage.c,v 1.3 1995/04/22 10:58:40 cgd Exp $ */ /* @@ -37,11 +38,13 @@ #if 0 static char sccsid[] = "@(#)damage.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$NetBSD: damage.c,v 1.3 1995/04/22 10:58:40 cgd Exp $"; +static char rcsid[] = "$OpenBSD: damage.c,v 1.2 1998/08/19 07:41:21 pjanzen Exp $"; #endif #endif /* not lint */ -# include "trek.h" +#include <stdio.h> +#include <err.h> +#include "trek.h" /* ** Schedule Ship.damages to a Device @@ -55,9 +58,10 @@ static char rcsid[] = "$NetBSD: damage.c,v 1.3 1995/04/22 10:58:40 cgd Exp $"; ** that the dock() and undock() have to reschedule the event. */ +void damage(dev1, dam) -int dev1; /* device index */ -double dam; /* time to repair */ + int dev1; /* device index */ + double dam; /* time to repair */ { register int i; register struct event *e; @@ -93,5 +97,5 @@ double dam; /* time to repair */ reschedule(e, e->date - Now.date + dam); return; } - syserr("Cannot find old damages %d\n", dev); + errx(1, "Cannot find old damages %d\n", dev); } |