diff options
Diffstat (limited to 'dedicated.c')
-rw-r--r-- | dedicated.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dedicated.c b/dedicated.c index 608b0f429..4ddd7c7a2 100644 --- a/dedicated.c +++ b/dedicated.c @@ -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); } } |