summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorjoerg <joerg>2012-12-25 21:09:52 +0000
committerjoerg <joerg>2012-12-25 21:09:52 +0000
commit8e99bdedf2e670c7d774407287f26c88b665fead (patch)
tree15c481ff35ed1552f148d5c241bbceb9dfe055a4 /games
parent26fa6ba41b10014ee11865abacb33b21fb3186af (diff)
downloadpkgsrc-8e99bdedf2e670c7d774407287f26c88b665fead.tar.gz
Use more void and system headers.
Diffstat (limited to 'games')
-rw-r--r--games/svb/distinfo5
-rw-r--r--games/svb/patches/patch-ab31
-rw-r--r--games/svb/patches/patch-score.c23
3 files changed, 53 insertions, 6 deletions
diff --git a/games/svb/distinfo b/games/svb/distinfo
index 872072a367d..d5bf620525c 100644
--- a/games/svb/distinfo
+++ b/games/svb/distinfo
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.5 2010/02/14 21:23:50 joerg Exp $
+$NetBSD: distinfo,v 1.6 2012/12/25 21:09:52 joerg Exp $
SHA1 (svb.shar.Z) = 9792ca79f49bf21cbe01b01f3fd0645872e646a9
RMD160 (svb.shar.Z) = db792b72e96a826099b9097ee5def2fce6830296
Size (svb.shar.Z) = 17403 bytes
SHA1 (patch-aa) = 901f65e1b8a4fc634b117064d2dd282dd1fd41a5
-SHA1 (patch-ab) = f0c9dc81d9e060e7de06295cc3a6b07779d7f463
+SHA1 (patch-ab) = edabaaedefcca89113961fcfcae7513ee4c87832
+SHA1 (patch-score.c) = 11a94218f7253cbe837d4d9f680aeab27eff60a3
diff --git a/games/svb/patches/patch-ab b/games/svb/patches/patch-ab
index cfd9e1b523a..6fadf42cc08 100644
--- a/games/svb/patches/patch-ab
+++ b/games/svb/patches/patch-ab
@@ -1,12 +1,35 @@
-$NetBSD: patch-ab,v 1.1 2005/12/29 16:20:48 joerg Exp $
+$NetBSD: patch-ab,v 1.2 2012/12/25 21:09:52 joerg Exp $
---- svs.c.orig 2005-12-29 16:17:25.000000000 +0000
+--- svs.c.orig 2012-12-25 13:53:19.000000000 +0000
+++ svs.c
-@@ -49,7 +49,6 @@
+@@ -38,6 +38,7 @@
+ *
+ */
- extern char *getenv();
++#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);
-extern int errno;
char *progname;
char user_name[40];
Bool debug = False;
+@@ -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;
diff --git a/games/svb/patches/patch-score.c b/games/svb/patches/patch-score.c
new file mode 100644
index 00000000000..8a69b23c7bf
--- /dev/null
+++ b/games/svb/patches/patch-score.c
@@ -0,0 +1,23 @@
+$NetBSD: patch-score.c,v 1.1 2012/12/25 21:09:52 joerg Exp $
+
+--- score.c.orig 2012-12-25 13:55:02.000000000 +0000
++++ score.c
+@@ -36,6 +36,7 @@
+ */
+
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <X11/Xos.h>
+ #include <X11/Xlib.h>
+ #include <X11/Xutil.h>
+@@ -233,9 +234,7 @@ write_scores()
+ /*
+ * adds score to table
+ */
+-add_score(sc, ledge)
+- int sc;
+- int ledge;
++void add_score(int sc, int ledge)
+ {
+ int i,
+ j;