mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 23:05:06 -05:00
ntp: change NSR_RemoveSource() to accept IP address only
Change the function to accept IP address alone to make it clear that the port is ignored.
This commit is contained in:
@@ -84,7 +84,7 @@ test_unit(void)
|
||||
|
||||
for (j = 0; j < sizeof (addrs) / sizeof (addrs[0]); j++) {
|
||||
DEBUG_LOG("removing source %s", UTI_IPToString(&addrs[j].ip_addr));
|
||||
NSR_RemoveSource(&addrs[j]);
|
||||
NSR_RemoveSource(&addrs[j].ip_addr);
|
||||
|
||||
for (k = 0; k < sizeof (addrs) / sizeof (addrs[0]); k++) {
|
||||
found = find_slot2(&addrs[k], &slot);
|
||||
|
||||
Reference in New Issue
Block a user