summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortb <tb@openbsd.org>2015-12-04 17:34:40 +0000
committertb <tb@openbsd.org>2015-12-04 17:34:40 +0000
commitd3431a599df1854f02ad49e45c48957bd41ba74d (patch)
tree021c02e9eb8ea153aa9a6d21a8729d2f6ef89bd2
parentallow utrace(2) by default. (diff)
downloadwireguard-openbsd-d3431a599df1854f02ad49e45c48957bd41ba74d.tar.xz
wireguard-openbsd-d3431a599df1854f02ad49e45c48957bd41ba74d.zip
cleanup: remove pwd.h, delete a stray comment and a const qualifier
-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>