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

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

commit a71e19c62cc994edaef5ee1737738bd7a25b3db9
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Thu Jun 13 09:01:04 2019 +0100

    Remove structure element that is written but not read
---
 src/native/windows/include/service.h | 1 -
 src/native/windows/src/service.c     | 1 -
 2 files changed, 2 deletions(-)

diff --git a/src/native/windows/include/service.h 
b/src/native/windows/include/service.h
index 5327ffc..faebef4 100644
--- a/src/native/windows/include/service.h
+++ b/src/native/windows/include/service.h
@@ -23,7 +23,6 @@ typedef struct APXSERVENTRY {
     WCHAR   szServiceName[SIZ_RESLEN];
     WCHAR   szObjectName[SIZ_RESLEN];
     WCHAR   szServiceDescription[SIZ_DESLEN];
-    DWORD   dwStart;
     LPQUERY_SERVICE_CONFIGW lpConfig;
     SERVICE_STATUS          stServiceStatus;
     SERVICE_STATUS_PROCESS  stStatusProcess;
diff --git a/src/native/windows/src/service.c b/src/native/windows/src/service.c
index e154732..1fcc1c3 100644
--- a/src/native/windows/src/service.c
+++ b/src/native/windows/src/service.c
@@ -589,7 +589,6 @@ apxServiceInstall(APXHANDLE hService, LPCWSTR szServiceName,
     else {
         lstrlcpyW(lpService->stServiceEntry.szServiceName,
                   SIZ_RESLEN, szServiceName);
-        lpService->stServiceEntry.dwStart = dwStartType;
         return TRUE;
     }
 }

Reply via email to