This is an automated email from the ASF dual-hosted git repository.

jfclere pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-daemon.git


The following commit(s) were added to refs/heads/master by this push:
     new 4f43e74  Update prunsrv.c
4f43e74 is described below

commit 4f43e74f18f5d9f1d2fb8273da5b6e632c8b9668
Author: Jean-Frederic Clere <[email protected]>
AuthorDate: Wed Mar 3 18:53:19 2021 +0100

    Update prunsrv.c
    
    c++/gcc declarations won't compile :-(
---
 src/native/windows/apps/prunsrv/prunsrv.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/native/windows/apps/prunsrv/prunsrv.c 
b/src/native/windows/apps/prunsrv/prunsrv.c
index 3bdb26b..3590922 100644
--- a/src/native/windows/apps/prunsrv/prunsrv.c
+++ b/src/native/windows/apps/prunsrv/prunsrv.c
@@ -888,7 +888,8 @@ static BOOL docmdStopService(LPAPXCMDLINE lpCmdline)
             /* Wait for the timeout if any */
             int  timeout     = SO_STOPTIMEOUT;
             if (timeout) {
-                for (int i=0; i<timeout; i++) {
+               int i;
+                for (i=0; i<timeout; i++) {
                     rv = apxServiceCheckStop(hService);
                     apxLogWrite(APXLOG_MARK_DEBUG "apxServiceCheck returns 
%d.", rv);
                     if (rv)

Reply via email to