-/* $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
#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 */
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);