diff options
author | christos <christos@NetBSD.org> | 1997-10-13 21:02:57 +0000 |
---|---|---|
committer | christos <christos@NetBSD.org> | 1997-10-13 21:02:57 +0000 |
commit | bd10b531314ec546d25fd238f27d94c74a726567 (patch) | |
tree | a6f88adfc60ca14d2851035c0a9fce98fcc96438 /sail/pl_1.c | |
parent | 7e5c0c57606f0f1e9335aa74ef5ea8c8048a9b2c (diff) | |
download | bsdgames-darwin-bd10b531314ec546d25fd238f27d94c74a726567.tar.gz bsdgames-darwin-bd10b531314ec546d25fd238f27d94c74a726567.tar.zst bsdgames-darwin-bd10b531314ec546d25fd238f27d94c74a726567.zip |
- make sure that the arguments to the printf like functions are correct
- add a makemsg() function to accompany makesignal.
Diffstat (limited to 'sail/pl_1.c')
-rw-r--r-- | sail/pl_1.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sail/pl_1.c b/sail/pl_1.c index 9c0e0100..2e461805 100644 --- a/sail/pl_1.c +++ b/sail/pl_1.c @@ -1,4 +1,4 @@ -/* $NetBSD: pl_1.c,v 1.4 1997/10/13 19:44:53 christos Exp $ */ +/* $NetBSD: pl_1.c,v 1.5 1997/10/13 21:04:02 christos Exp $ */ /* * Copyright (c) 1983, 1993 @@ -38,13 +38,14 @@ #if 0 static char sccsid[] = "@(#)pl_1.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: pl_1.c,v 1.4 1997/10/13 19:44:53 christos Exp $"); +__RCSID("$NetBSD: pl_1.c,v 1.5 1997/10/13 21:04:02 christos Exp $"); #endif #endif /* not lint */ #include "player.h" #include <sys/types.h> #include <sys/wait.h> +#include <unistd.h> /* * If we get here before a ship is chosen, then ms == 0 and @@ -106,13 +107,14 @@ int conditions; if (ms != 0) { logger(ms); if (conditions != LEAVE_SYNC) { - makesignal(ms, "Captain %s relinquishing.", - (struct ship *)0, mf->captain); + makemsg(ms, "Captain %s relinquishing.", + mf->captain); Write(W_END, ms, 0, 0, 0, 0, 0); (void) Sync(); } } sync_close(!hasdriver); + sleep(5); cleanupscreen(); exit(0); } |