diff options
author | tron <tron@openttd.org> | 2005-02-23 09:13:12 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-02-23 09:13:12 +0000 |
commit | 3844a104f29a256b8f1bf7f97418724bd97c7c8c (patch) | |
tree | ac3b31a0a17904ab3682202b886b12acab039b14 /dedicated.c | |
parent | b758f1eb08b183a2947f81d080565b307d5db304 (diff) | |
download | openttd-3844a104f29a256b8f1bf7f97418724bd97c7c8c.tar.xz |
(svn r1910) Move two variables out of variables.h which are only used locally
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); } } |