diff options
author | Max Kellermann <max@duempel.org> | 2014-12-05 00:25:48 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-12-05 00:25:48 +0100 |
commit | cd3c2fdb4917dc0a4fa2b9da7d36ea34306d648b (patch) | |
tree | 0f490166c568b5d3adc79010e3ba65a4ffbb10f6 /src/win32 | |
parent | 5cbc319e964fb037793b51920b4ed164e8ed90af (diff) | |
download | mpd-cd3c2fdb4917dc0a4fa2b9da7d36ea34306d648b.tar.gz mpd-cd3c2fdb4917dc0a4fa2b9da7d36ea34306d648b.tar.xz mpd-cd3c2fdb4917dc0a4fa2b9da7d36ea34306d648b.zip |
Win32Main: make variables more local
Diffstat (limited to 'src/win32')
-rw-r--r-- | src/win32/Win32Main.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/win32/Win32Main.cxx b/src/win32/Win32Main.cxx index 5d1f50895..894879129 100644 --- a/src/win32/Win32Main.cxx +++ b/src/win32/Win32Main.cxx @@ -122,15 +122,13 @@ console_handler(DWORD event) int win32_main(int argc, char *argv[]) { - DWORD error_code; - service_argc = argc; service_argv = argv; if (StartServiceCtrlDispatcher(service_registry)) return 0; /* run as service successefully */ - error_code = GetLastError(); + const DWORD error_code = GetLastError(); if (error_code == ERROR_FAILED_SERVICE_CONTROLLER_CONNECT) { /* running as console app */ running.store(false); |