[PATCH 07/18] ptpd: Saving rtOpst in ptpClock earlier
Gabriel Moyano
gabriel.moyano at dlr.de
Wed Apr 12 13:54:11 UTC 2023
From: Chris Johns <chrisj at rtems.org>
---
freebsd/contrib/ptpd/src/dep/startup.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/freebsd/contrib/ptpd/src/dep/startup.c b/freebsd/contrib/ptpd/src/dep/startup.c
index 97231d99..ace980fa 100644
--- a/freebsd/contrib/ptpd/src/dep/startup.c
+++ b/freebsd/contrib/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