comparison 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
comparison
equal deleted inserted replaced
191:fb25a62680c7 192:3de8058dd549
170 exit(1); 170 exit(1);
171 171
172 /* START NEW GAME */ 172 /* START NEW GAME */
173 173
174 dnum = (wizard && getenv("SEED") != NULL ? 174 dnum = (wizard && getenv("SEED") != NULL ?
175 atoi(getenv("SEED")) : lowtime + getpid()); 175 atoi(getenv("SEED")) : lowtime + md_getpid());
176 176
177 if(wizard) 177 if(wizard)
178 printf("Hello %s, welcome to dungeon #%d\n", whoami, dnum); 178 printf("Hello %s, welcome to dungeon #%d\n", whoami, dnum);
179 else 179 else
180 printf("Hello %s, One moment while I open the door to the dungeon...\n", whoami); 180 printf("Hello %s, One moment while I open the door to the dungeon...\n", whoami);