2012-12-25 22:09:52 +01:00
|
|
|
$NetBSD: patch-ab,v 1.2 2012/12/25 21:09:52 joerg Exp $
|
2005-12-29 17:20:48 +01:00
|
|
|
|
2012-12-25 22:09:52 +01:00
|
|
|
--- svs.c.orig 2012-12-25 13:53:19.000000000 +0000
|
2005-12-29 17:20:48 +01:00
|
|
|
+++ svs.c
|
2012-12-25 22:09:52 +01:00
|
|
|
@@ -38,6 +38,7 @@
|
|
|
|
*
|
|
|
|
*/
|
2005-12-29 17:20:48 +01:00
|
|
|
|
2012-12-25 22:09:52 +01:00
|
|
|
+#include <stdlib.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <X11/Xos.h>
|
|
|
|
#include <sys/types.h>
|
|
|
|
@@ -47,9 +48,8 @@
|
|
|
|
#include <X11/Xutil.h>
|
|
|
|
#include <math.h>
|
|
|
|
|
|
|
|
-extern char *getenv();
|
|
|
|
+void add_score(int sc, int ledge);
|
2005-12-29 17:20:48 +01:00
|
|
|
|
|
|
|
-extern int errno;
|
|
|
|
char *progname;
|
|
|
|
char user_name[40];
|
|
|
|
Bool debug = False;
|
2012-12-25 22:09:52 +01:00
|
|
|
@@ -423,9 +423,8 @@ init_display(ac, av, dname)
|
|
|
|
XMapWindow(dpy, game_win);
|
|
|
|
}
|
|
|
|
|
|
|
|
-main(argc, argv)
|
|
|
|
- int argc;
|
|
|
|
- char **argv;
|
|
|
|
+int
|
|
|
|
+main(int argc, char **argv)
|
|
|
|
{
|
|
|
|
int i;
|
|
|
|
char *dname = NULL;
|