From: Miroslav Lichvar Date: Tue, 5 Aug 2014 14:33:56 +0000 (+0200) Subject: refclock: fix compiler warning in SOCK error message X-Git-Tag: 1.31-pre1~51 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d57b7a44dcb2ca8415ed0572013ec7fb940068e;p=thirdparty%2Fchrony.git refclock: fix compiler warning in SOCK error message --- diff --git a/refclock_sock.c b/refclock_sock.c index f746aa54..97f740b2 100644 --- a/refclock_sock.c +++ b/refclock_sock.c @@ -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; }