Use the length modifier 'l' when supplying an argument of
type long to printf(3).
This commit is contained in:
parent
a89c0b2458
commit
94fed363fe
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user