3B2: Change uint32_t into uint32
This commit is contained in:
parent
ef6667b05c
commit
d199ff1056
1 changed files with 2 additions and 2 deletions
|
@ -294,7 +294,7 @@ static void tod_resync(UNIT *uptr)
|
||||||
{
|
{
|
||||||
TOD_DATA *td;
|
TOD_DATA *td;
|
||||||
time_t delta;
|
time_t delta;
|
||||||
uint32_t catchup_ticks;
|
uint32 catchup_ticks;
|
||||||
|
|
||||||
if (!(uptr->flags & UNIT_ATT) || uptr->filebuf == NULL) {
|
if (!(uptr->flags & UNIT_ATT) || uptr->filebuf == NULL) {
|
||||||
return;
|
return;
|
||||||
|
@ -305,7 +305,7 @@ static void tod_resync(UNIT *uptr)
|
||||||
if (td->time > 0) {
|
if (td->time > 0) {
|
||||||
delta = time(NULL) - td->time;
|
delta = time(NULL) - td->time;
|
||||||
if (delta > MIN_DIFF && delta < MAX_DIFF) {
|
if (delta > MIN_DIFF && delta < MAX_DIFF) {
|
||||||
catchup_ticks = (uint32_t) delta * CLK_TPS;
|
catchup_ticks = (uint32) delta * CLK_TPS;
|
||||||
sim_debug(EXECUTE_MSG, &tod_dev,
|
sim_debug(EXECUTE_MSG, &tod_dev,
|
||||||
"Catching up with a delta of %ld seconds (%d ticks).\n",
|
"Catching up with a delta of %ld seconds (%d ticks).\n",
|
||||||
delta, catchup_ticks);
|
delta, catchup_ticks);
|
||||||
|
|
Loading…
Add table
Reference in a new issue