diff srogue/main.c @ 192:3de8058dd549

srogue: provide type definitions if needed. If not defined in headers, uid_t and gid_t will be defined as unsigned ints, and pid_t as int.
author John "Elwin" Edwards
date Mon, 03 Aug 2015 21:29:16 -0400
parents 7c552cbc6ad9
children 94a0d9dd5ce1
line wrap: on
line diff
--- a/srogue/main.c	Mon Aug 03 17:16:42 2015 -0400
+++ b/srogue/main.c	Mon Aug 03 21:29:16 2015 -0400
@@ -172,7 +172,7 @@
 	/* START NEW GAME */
 
 	dnum = (wizard && getenv("SEED") != NULL ?
-		atoi(getenv("SEED")) : lowtime + getpid());
+		atoi(getenv("SEED")) : lowtime + md_getpid());
 
 	if(wizard)
 		printf("Hello %s, welcome to dungeon #%d\n", whoami, dnum);