Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/games/gomoku gomoku: call setprogname, for portability
details: https://anonhg.NetBSD.org/src/rev/42c288dcec06
branches: trunk
changeset: 366207:42c288dcec06
user: rillig <rillig%NetBSD.org@localhost>
date: Wed May 18 19:29:00 2022 +0000
description:
gomoku: call setprogname, for portability
No functional change on NetBSD, but the games are distributed to other
platforms as well.
diffstat:
games/gomoku/main.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 884bcd313367 -r 42c288dcec06 games/gomoku/main.c
--- a/games/gomoku/main.c Wed May 18 19:25:12 2022 +0000
+++ b/games/gomoku/main.c Wed May 18 19:29:00 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.38 2022/05/16 21:53:41 rillig Exp $ */
+/* $NetBSD: main.c,v 1.39 2022/05/18 19:29:00 rillig Exp $ */
/*
* Copyright (c) 1994
@@ -42,7 +42,7 @@
#if 0
static char sccsid[] = "@(#)main.c 8.4 (Berkeley) 5/4/95";
#else
-__RCSID("$NetBSD: main.c,v 1.38 2022/05/16 21:53:41 rillig Exp $");
+__RCSID("$NetBSD: main.c,v 1.39 2022/05/18 19:29:00 rillig Exp $");
#endif
#endif /* not lint */
@@ -100,6 +100,8 @@
/* Revoke setgid privileges */
setgid(getgid());
+ setprogname(argv[0]);
+
tmp = getlogin();
if (tmp != NULL) {
strlcpy(user, tmp, sizeof(user));
Home |
Main Index |
Thread Index |
Old Index