openbsd-ports/games/xroach/patches/patch-ac

29 lines
514 B
Plaintext

--- xroach.c.orig Fri Apr 10 15:40:54 1998
+++ xroach.c Fri Apr 10 15:41:14 1998
@@ -77,7 +77,7 @@
int MarkHiddenRoaches();
Pixel AllocNamedColor();
-void
+int
main(ac, av)
int ac;
char *av[];
@@ -119,7 +119,7 @@
}
}
- srand((int)time((long *)NULL));
+ srand((int)time(NULL));
/*
Catch some signals so we can erase any visible roaches.
@@ -216,6 +216,7 @@
CoverRoot();
XCloseDisplay(display);
+ return (0);
}
#define USEPRT(msg) fprintf(stderr, msg)