Author: akhaldi
Date: Wed Apr 8 18:36:06 2015
New Revision: 67102
URL:
http://svn.reactos.org/svn/reactos?rev=67102&view=rev
Log:
[SERVMAN] Fix GCC build.
Modified:
trunk/reactos/base/applications/mscutils/servman/start.c
trunk/reactos/base/applications/mscutils/servman/stop.c
Modified: trunk/reactos/base/applications/mscutils/servman/start.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mscutils…
==============================================================================
--- trunk/reactos/base/applications/mscutils/servman/start.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mscutils/servman/start.c [iso-8859-1] Wed Apr 8
18:36:06 2015
@@ -140,6 +140,7 @@
/* Loop until it's running */
while (ServiceStatus.dwCurrentState != SERVICE_RUNNING)
{
+ int i;
/* Fixup the wait time */
WaitTime = ServiceStatus.dwWaitHint / 10;
@@ -147,7 +148,7 @@
else if (WaitTime > 10000) WaitTime = 10000;
/* We don't wanna wait for up to 10 secs without incrementing */
- for (int i = WaitTime / 1000; i > 0; i--)
+ for (i = WaitTime / 1000; i > 0; i--)
{
Sleep(1000);
if (hProgress)
Modified: trunk/reactos/base/applications/mscutils/servman/stop.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mscutils…
==============================================================================
--- trunk/reactos/base/applications/mscutils/servman/stop.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mscutils/servman/stop.c [iso-8859-1] Wed Apr 8
18:36:06 2015
@@ -62,6 +62,7 @@
while (ServiceStatus.dwCurrentState != SERVICE_STOPPED)
{
+ int i;
/* Fixup the wait time */
WaitTime = ServiceStatus.dwWaitHint / 10;
@@ -69,7 +70,7 @@
else if (WaitTime > 10000) WaitTime = 10000;
/* We don't wanna wait for up to 10 secs without incrementing */
- for (int i = WaitTime / 1000; i > 0; i--)
+ for (i = WaitTime / 1000; i > 0; i--)
{
Sleep(1000);
if (hProgress)