diff options
author | joerg <joerg@pkgsrc.org> | 2012-01-20 17:05:53 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2012-01-20 17:05:53 +0000 |
commit | c6ba63766a59027dbe577cfaa5ad1a24798ba07d (patch) | |
tree | b5d1b6e3a2d5a5a82a7d6f490f055aa74b67d8fd /games/xworm/patches | |
parent | 867cfa52e168ae45ca560f16afead75312827499 (diff) | |
download | pkgsrc-c6ba63766a59027dbe577cfaa5ad1a24798ba07d.tar.gz |
main must return int.
Diffstat (limited to 'games/xworm/patches')
-rw-r--r-- | games/xworm/patches/patch-ab | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/games/xworm/patches/patch-ab b/games/xworm/patches/patch-ab index 4aca8c66c6d..80253bed83a 100644 --- a/games/xworm/patches/patch-ab +++ b/games/xworm/patches/patch-ab @@ -1,14 +1,15 @@ -$NetBSD: patch-ab,v 1.2 2005/12/29 20:27:14 joerg Exp $ +$NetBSD: patch-ab,v 1.3 2012/01/20 17:05:53 joerg Exp $ --- xworm.c.orig 1997-05-07 16:25:57.000000000 +0000 +++ xworm.c -@@ -3,13 +3,20 @@ +@@ -3,13 +3,21 @@ #include <X11/Xlib.h> #include <X11/Xutil.h> +#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__) +#include <sys/time.h> +#endif ++#include <stdlib.h> #include <time.h> #include <string.h> #include <stdio.h> @@ -26,7 +27,16 @@ $NetBSD: patch-ab,v 1.2 2005/12/29 20:27:14 joerg Exp $ #define maxQ 5000 /* max queue */ #define NCOLORS 15 /* number of colours */ -@@ -551,16 +558,24 @@ void AllocColours(void){ +@@ -137,7 +145,7 @@ void vec_line(int,int,int,int); + int vec_wrline(char *,int,int,int); + int vec_wrlineX(char *,int,int,int,float); + +-void main(int argc, char **argv) { ++int main(int argc, char **argv) { + + memset(&timeout, 0, sizeof(struct timeval)); + +@@ -551,16 +559,24 @@ void AllocColours(void){ colormap = DefaultColormap(display, screen); if (!XAllocColorCells(display, colormap, True, NULL, 0, pixels, npixels)) { fprintf(stderr, "failed to allocate all %d colours\n", NCOLORS); @@ -60,7 +70,7 @@ $NetBSD: patch-ab,v 1.2 2005/12/29 20:27:14 joerg Exp $ } Bool predproc (display,event,arg) -@@ -773,7 +788,7 @@ float rnd(int x) { /* This routine retur +@@ -773,7 +789,7 @@ float rnd(int x) { /* This routine retur void rgrid(void){ FILE *fpg; if ((fpg=fopen(gridfile,"rb")) == NULL) { |