Use the length modifier 'l' when supplying an argument of

type long to printf(3).
This commit is contained in:
Robert Drehmel 2002-07-11 20:10:07 +00:00
parent a89c0b2458
commit 94fed363fe

View File

@ -166,7 +166,7 @@ adjclock(corr)
}
} else {
syslog(LOG_WARNING,
"clock correction %d sec too large to adjust",
"clock correction %ld sec too large to adjust",
adj.tv_sec);
(void) gettimeofday(&now, 0);
timevaladd(&now, corr);