freebsd-ports/games/xataxx/files/patch-display.c
Martin Wilke 6e00b2437a - Update MASTER_SITES
- Fix build with clang
- Add MAKE_JOBS_SAFE
- Reformat pkg-descr

PR:		175592
Submitted by:	Ports Fury
2013-02-04 14:26:51 +00:00

27 lines
509 B
C

--- display.c.orig
+++ display.c
@@ -1,4 +1,6 @@
#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <math.h>
@@ -145,7 +147,7 @@
int occ,x,y;
if (currdpy != dpy && !botmode)
- return;
+ return(0);
wipemap(currdpy, currbamp, currgc, currscr, currwin);
for (y=0;y!=ysize;y++)
for (x=0;x!=xsize;x++)
@@ -386,7 +388,7 @@
XFlush(currdpy);
}
XNextEvent(dpy,&event);
- return;
+ return(0);
}
}