summaryrefslogtreecommitdiffstats
path: root/sail
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2013-10-19 17:19:30 +0000
committerchristos <christos@NetBSD.org>2013-10-19 17:19:30 +0000
commit2a8e0dceaacbc707148905b721f341004c7ea365 (patch)
tree78a1d40f997319c41fdcc38b09243b14016f289b /sail
parent3a0be2d0e88bf73dec95086fa0048c88f0b142d9 (diff)
downloadbsdgames-darwin-2a8e0dceaacbc707148905b721f341004c7ea365.tar.gz
bsdgames-darwin-2a8e0dceaacbc707148905b721f341004c7ea365.tar.zst
bsdgames-darwin-2a8e0dceaacbc707148905b721f341004c7ea365.zip
fix unused variable warnings
Diffstat (limited to 'sail')
-rw-r--r--sail/sync.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sail/sync.c b/sail/sync.c
index 5362ab95..26b4c10c 100644
--- a/sail/sync.c
+++ b/sail/sync.c
@@ -1,4 +1,4 @@
-/* $NetBSD: sync.c,v 1.33 2009/03/14 23:47:18 dholland Exp $ */
+/* $NetBSD: sync.c,v 1.34 2013/10/19 17:23:08 christos Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)sync.c 8.2 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: sync.c,v 1.33 2009/03/14 23:47:18 dholland Exp $");
+__RCSID("$NetBSD: sync.c,v 1.34 2013/10/19 17:23:08 christos Exp $");
#endif
#endif /* not lint */
@@ -247,13 +247,12 @@ int
sync_open(void)
{
const char *sync_file;
- const char *sync_lock;
struct stat tmp;
if (sync_fp != NULL)
fclose(sync_fp);
sync_file = get_sync_file(game);
- sync_lock = get_lock_file(game);
+ (void)get_lock_file(game);
setegid(egid);
if (stat(sync_file, &tmp) < 0) {
mode_t omask = umask(002);