(svn r1910) Move two variables out of variables.h which are only used locally

This commit is contained in:
tron
2005-02-23 09:13:12 +00:00
parent 50ac80cb4c
commit f55bde6ee4
3 changed files with 8 additions and 10 deletions

View File

@@ -49,8 +49,8 @@ static void *_dedicated_video_mem;
void DedicatedFork(void)
{
/* Fork the program */
_dedicated_pid = fork();
switch (_dedicated_pid) {
pid_t pid = fork();
switch (pid) {
case -1:
perror("Unable to fork");
exit(1);
@@ -76,7 +76,7 @@ void DedicatedFork(void)
default:
// We're the parent
printf("Loading dedicated server...\n");
printf(" - Forked to background with pid %d\n", _dedicated_pid);
printf(" - Forked to background with pid %d\n", pid);
exit(0);
}
}