openbsd-ports/games/spatial/patches/patch-spatial_spatial_c

41 lines
945 B
Plaintext
Raw Normal View History

$OpenBSD: patch-spatial_spatial_c,v 1.2 2007/12/05 14:08:36 ajacoutot Exp $
2005-09-09 04:26:58 -04:00
--- spatial/spatial.c.orig Thu Aug 26 00:26:15 1993
+++ spatial/spatial.c Wed Dec 5 15:03:28 2007
@@ -3,6 +3,9 @@ given to copy and use, as long as this copyright
2005-09-09 04:26:58 -04:00
notice is retained. */
#include <stdio.h>
+#include <unistd.h>
+#include <string.h>
+#include <stdlib.h>
#include <X11/Xlib.h>
#include "spatial.h"
#include "patchlevel.h"
@@ -10,21 +13,20 @@ given to copy and use, as long as this copyright
2005-09-09 04:26:58 -04:00
#define INITWINSIZEX (720)
#define INITWINSIZEY (740)
-extern void srandom();
-
extern double focallen;
extern int forcemono;
-extern void xinit(), loadpieces(), gameloop(),
-initintro(), introloop(), get_names(), load_hscores(),
-redo_board_globals();
-extern int checkmod_scores();
+int
main(argc, argv)
int argc;
char *argv[];
{
int ix;
+
+ init_scores();
+ setegid(getgid());
+ setgid(getgid());
srandom(getpid());