summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f2696c0)
raw | patch | inline | side by side (parent: f2696c0)
author | Johan Kiviniemi <devel@johan.kiviniemi.name> | |
Thu, 4 Oct 2012 21:24:19 +0000 (00:24 +0300) | ||
committer | Johan Kiviniemi <devel@johan.kiviniemi.name> | |
Thu, 4 Oct 2012 22:04:05 +0000 (01:04 +0300) |
src/ntpd.c | patch | blob | history |
diff --git a/src/ntpd.c b/src/ntpd.c
index 15e60a5d0317735a00f75b6a1ae1391c827ac0aa..3e2b4ea5f12e949e34594bb01114f1fbf962f545 100644 (file)
--- a/src/ntpd.c
+++ b/src/ntpd.c
{
/* The unit number is in the lowest byte. */
ssnprintf (peername, sizeof (peername),
- "%s%i",
+ "%s-%u",
refclock_names[refclock_id],
ntohl (ptr->srcadr) & 0xFF);
}