]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
refclock: fix compiler warning in SOCK error message
authorMiroslav Lichvar <mlichvar@redhat.com>
Tue, 5 Aug 2014 14:33:56 +0000 (16:33 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Tue, 5 Aug 2014 15:13:08 +0000 (17:13 +0200)
refclock_sock.c

index f746aa544cd0308ebfbc0af26d9a4112f79b0d8a..97f740b24a95881b693bc10428930671dcd027fb 100644 (file)
@@ -64,7 +64,7 @@ static void read_sample(void *anything)
 
   if (s != sizeof (sample)) {
     LOG(LOGS_WARN, LOGF_Refclock, "Unexpected length of SOCK sample : %d != %ld",
-        s, sizeof (sample));
+        s, (long)sizeof (sample));
     return;
   }