This is an automated email from the ASF dual-hosted git repository.
ggregory 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 d5cb51e Comment a function; make it slightly less verbose.
d5cb51e is described below
commit d5cb51e21aa76a28de38220e0761b8bed16df424
Author: Gary Gregory <[email protected]>
AuthorDate: Fri Nov 5 09:00:26 2021 -0400
Comment a function; make it slightly less verbose.
---
src/native/windows/apps/prunsrv/prunsrv.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/src/native/windows/apps/prunsrv/prunsrv.c
b/src/native/windows/apps/prunsrv/prunsrv.c
index ac9ff8a..0cf3696 100644
--- a/src/native/windows/apps/prunsrv/prunsrv.c
+++ b/src/native/windows/apps/prunsrv/prunsrv.c
@@ -1103,13 +1103,11 @@ static BOOL reportServiceStatus(DWORD dwCurrentState,
return reportServiceStatusE(dwCurrentState, dwWin32ExitCode, dwWaitHint,
0);
}
+/* Report SERVICE_STOPPED to the SCM.
+ */
static BOOL reportServiceStatusStopped(DWORD exitCode)
{
- if (exitCode) {
- return reportServiceStatusE(SERVICE_STOPPED,
ERROR_SERVICE_SPECIFIC_ERROR, 0, exitCode);
- } else {
- return reportServiceStatus(SERVICE_STOPPED, NO_ERROR, 0);
- }
+ return reportServiceStatusE(SERVICE_STOPPED, exitCode ?
ERROR_SERVICE_SPECIFIC_ERROR : NO_ERROR, 0, exitCode);
}
BOOL child_callback(APXHANDLE hObject, UINT uMsg,