summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authortb <tb@cvs.openbsd.org>2015-12-04 17:34:41 +0000
committertb <tb@cvs.openbsd.org>2015-12-04 17:34:41 +0000
commita0904325567dd0a4ef2d0aaadd9b88b6d5f95f60 (patch)
tree57162f3c6acf087b87a45a47c94771d5b8330658 /games
parentc14698d0ea367daedf9a723f3fa9c0c857f2a1bd (diff)
cleanup: remove pwd.h, delete a stray comment and a const qualifier
Diffstat (limited to 'games')
-rw-r--r--games/battlestar/battlestar.c4
-rw-r--r--games/battlestar/com6.c4
-rw-r--r--games/battlestar/extern.h3
3 files changed, 4 insertions, 7 deletions
diff --git a/games/battlestar/battlestar.c b/games/battlestar/battlestar.c
index 07ecd868a21..2c9368eaea4 100644
--- a/games/battlestar/battlestar.c
+++ b/games/battlestar/battlestar.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: battlestar.c,v 1.17 2015/11/29 15:31:06 tb Exp $ */
+/* $OpenBSD: battlestar.c,v 1.18 2015/12/04 17:34:40 tb Exp $ */
/* $NetBSD: battlestar.c,v 1.3 1995/03/21 15:06:47 cgd Exp $ */
/*
@@ -53,8 +53,6 @@ main(int argc, char *argv[])
open_score_file();
- /* revoke privs */
-
if (argc < 2)
initialize(NULL);
else if (strcmp(argv[1], "-r") == 0)
diff --git a/games/battlestar/com6.c b/games/battlestar/com6.c
index 143555d17a8..856ea3b4d07 100644
--- a/games/battlestar/com6.c
+++ b/games/battlestar/com6.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: com6.c,v 1.20 2015/11/29 15:31:06 tb Exp $ */
+/* $OpenBSD: com6.c,v 1.21 2015/12/04 17:34:40 tb Exp $ */
/* $NetBSD: com6.c,v 1.5 1995/04/27 21:30:23 mycroft Exp $ */
/*
@@ -92,7 +92,7 @@ static FILE *score_fp;
void
open_score_file(void)
{
- const char scorefile[PATH_MAX];
+ char scorefile[PATH_MAX];
const char *home;
int ret;
diff --git a/games/battlestar/extern.h b/games/battlestar/extern.h
index 97fe817af45..89dfa59208e 100644
--- a/games/battlestar/extern.h
+++ b/games/battlestar/extern.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: extern.h,v 1.17 2014/11/16 04:50:46 guenther Exp $ */
+/* $OpenBSD: extern.h,v 1.18 2015/12/04 17:34:40 tb Exp $ */
/* $NetBSD: extern.h,v 1.5 1995/04/24 12:22:18 cgd Exp $ */
/*
@@ -38,7 +38,6 @@
#include <err.h>
#include <errno.h>
#include <limits.h>
-#include <pwd.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>