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 | f55bde6ee41eacde0fe3aab20b82af4fa99bdfcc (patch) | |
tree | ac3b31a0a17904ab3682202b886b12acab039b14 /dedicated.c | |
parent | 50ac80cb4c08d76c57b540744e7394ebd3ccc300 (diff) | |
download | openttd-f55bde6ee41eacde0fe3aab20b82af4fa99bdfcc.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); } } |