mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 19:15:07 -05:00
ntp: simplify NSR_Finalise()
This commit is contained in:
@@ -198,14 +198,7 @@ NSR_Initialise(void)
|
|||||||
void
|
void
|
||||||
NSR_Finalise(void)
|
NSR_Finalise(void)
|
||||||
{
|
{
|
||||||
SourceRecord *record;
|
NSR_RemoveAllSources();
|
||||||
unsigned int i;
|
|
||||||
|
|
||||||
for (i = 0; i < ARR_GetSize(records); i++) {
|
|
||||||
record = get_record(i);
|
|
||||||
if (record->remote_addr)
|
|
||||||
clean_source_record(record);
|
|
||||||
}
|
|
||||||
|
|
||||||
LCL_RemoveParameterChangeHandler(slew_sources, NULL);
|
LCL_RemoveParameterChangeHandler(slew_sources, NULL);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user