Fix printing refclocks and IPv6 sources in statistics log

This commit is contained in:
Miroslav Lichvar
2009-11-30 17:18:28 +01:00
parent 19651dc767
commit 0f9892fe7a
5 changed files with 7 additions and 22 deletions

16
util.c
View File

@@ -257,22 +257,6 @@ UTI_RefidToString(unsigned long ref_id)
/* ================================================== */
char *
UTI_IPToDottedQuad(unsigned long ip)
{
unsigned long a, b, c, d;
char *result;
a = (ip>>24) & 0xff;
b = (ip>>16) & 0xff;
c = (ip>> 8) & 0xff;
d = (ip>> 0) & 0xff;
result = NEXT_BUFFER;
snprintf(result, BUFFER_LENGTH, "%ld.%ld.%ld.%ld", a, b, c, d);
return result;
}
/* ================================================== */
char *
UTI_IPToString(IPAddr *addr)
{