[PATCH v2 07/18] ptpd: Saving rtOpst in ptpClock earlier

Gabriel Moyano gabriel.moyano at dlr.de
Mon Apr 17 07:59:20 UTC 2023


From: Chris Johns <chrisj at rtems.org>

---
 rtemsbsd/ptpd/src/dep/startup.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/rtemsbsd/ptpd/src/dep/startup.c b/rtemsbsd/ptpd/src/dep/startup.c
index 97231d99..ace980fa 100644
--- a/rtemsbsd/ptpd/src/dep/startup.c
+++ b/rtemsbsd/ptpd/src/dep/startup.c
@@ -846,6 +846,8 @@ configcheck:
 		}
 	}
 
+	ptpClock->rtOpts = rtOpts;
+
 	if(rtOpts->statisticsLog.logEnabled)
 		ptpClock->resetStatisticsLog = TRUE;
 
@@ -918,8 +920,6 @@ configcheck:
 		goto fail;
 	}
 
-	ptpClock->rtOpts = rtOpts;
-
 	/* init alarms */
 	initAlarms(ptpClock->alarms, ALRM_MAX, (void*)ptpClock);
 	configureAlarms(ptpClock->alarms, ALRM_MAX, (void*)ptpClock);
-- 
2.25.1



More information about the devel mailing list