summaryrefslogtreecommitdiffstats
path: root/gomoku
diff options
context:
space:
mode:
authormycroft <mycroft@NetBSD.org>2000-05-08 07:55:59 +0000
committermycroft <mycroft@NetBSD.org>2000-05-08 07:55:59 +0000
commit88eff08098072c4b923af3a7180b14d6dfcf66ef (patch)
tree40d5c0f66d3048d7bda2b215bec0d405f8bdf5aa /gomoku
parentf2aaefda6c88e48aabc5544f251334e4256e7823 (diff)
downloadbsdgames-darwin-88eff08098072c4b923af3a7180b14d6dfcf66ef.tar.gz
bsdgames-darwin-88eff08098072c4b923af3a7180b14d6dfcf66ef.tar.zst
bsdgames-darwin-88eff08098072c4b923af3a7180b14d6dfcf66ef.zip
Use setgid(), not setregid().
Diffstat (limited to 'gomoku')
-rw-r--r--gomoku/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gomoku/main.c b/gomoku/main.c
index 36f384db..3d5d862b 100644
--- a/gomoku/main.c
+++ b/gomoku/main.c
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.9 1999/09/13 17:18:58 jsm Exp $ */
+/* $NetBSD: main.c,v 1.10 2000/05/08 07:56:03 mycroft Exp $ */
/*
* Copyright (c) 1994
@@ -46,7 +46,7 @@ __COPYRIGHT("@(#) Copyright (c) 1994\n\
#if 0
static char sccsid[] = "@(#)main.c 8.4 (Berkeley) 5/4/95";
#else
-__RCSID("$NetBSD: main.c,v 1.9 1999/09/13 17:18:58 jsm Exp $");
+__RCSID("$NetBSD: main.c,v 1.10 2000/05/08 07:56:03 mycroft Exp $");
#endif
#endif /* not lint */
@@ -99,7 +99,7 @@ main(argc, argv)
};
/* Revoke setgid privileges */
- setregid(getgid(), getgid());
+ setgid(getgid());
color = curmove = 0;