+/* $NetBSD: main.c,v 1.7 1999/09/12 09:02:21 jsm Exp $ */
+
/*
- * Copyright (c) 1983 Regents of the University of California.
- * All rights reserved.
+ * Copyright (c) 1983, 1993
+ * The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* SUCH DAMAGE.
*/
+#include <sys/cdefs.h>
#ifndef lint
-char copyright[] =
-"@(#) Copyright (c) 1983 Regents of the University of California.\n\
- All rights reserved.\n";
+__COPYRIGHT("@(#) Copyright (c) 1983, 1993\n\
+ The Regents of the University of California. All rights reserved.\n");
#endif /* not lint */
#ifndef lint
-/*static char sccsid[] = "from: @(#)main.c 5.4 (Berkeley) 2/28/91";*/
-static char rcsid[] = "$Id: main.c,v 1.2 1993/08/01 18:54:24 mycroft Exp $";
+#if 0
+static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 5/31/93";
+#else
+__RCSID("$NetBSD: main.c,v 1.7 1999/09/12 09:02:21 jsm Exp $");
+#endif
#endif /* not lint */
-# include "hangman.h"
+#include "hangman.h"
/*
* This game written by Ken Arnold.
*/
-main()
+int
+main(void)
{
- void die();
+ /* Revoke setgid privileges */
+ setregid(getgid(), getgid());
initscr();
signal(SIGINT, die);
}
/* NOTREACHED */
}
-
/*
* die:
* Die properly.
*/
void
-die()
+die(dummy)
+ int dummy __attribute__((__unused__));
{
mvcur(0, COLS - 1, LINES - 1, 0);
endwin();