pkgsrc/games/xroach/patches/patch-ab

31 lines
553 B
Text

$NetBSD: patch-ab,v 1.2 2001/12/07 09:22:13 wiz Exp $
--- xroach.c.orig Fri Jun 4 21:47:09 1993
+++ xroach.c
@@ -77,7 +77,7 @@
int MarkHiddenRoaches();
Pixel AllocNamedColor();
-void
+int
main(ac, av)
int ac;
char *av[];
@@ -115,7 +115,7 @@
}
}
- srand((int)time((long *)NULL));
+ srand((int)time((time_t *)NULL));
/*
Catch some signals so we can erase any visible roaches.
@@ -212,6 +212,8 @@
CoverRoot();
XCloseDisplay(display);
+
+ exit(0);
}
#define USEPRT(msg) fprintf(stderr, msg)