inet: resolve some compile and runtime warnings

- ping(1) triggers warnings about unimplemented exceptions for select;
  even if there could be a useful implementation (which is doubtful),
  the warnings are not helping anyone right now;
- the clock_t data type has changed.

Change-Id: Ie5b1383e7657e8501f63bb4b9d255c6502567a15
This commit is contained in:
David van Moolenbroek 2015-09-01 16:20:18 +00:00
parent 4b12166f26
commit 1d9856e713
4 changed files with 4 additions and 6 deletions

View file

@ -54,7 +54,7 @@ clock_t tim;
}
else if (!curr_time)
{
DBLOCK(0x20, printf("set_time: new time %u < prev_time %u\n",
DBLOCK(0x20, printf("set_time: new time %lu < prev_time %lu\n",
tim, prev_time));
}
}

View file

@ -680,7 +680,7 @@ unsigned operations;
}
if (operations & SR_SELECT_EXCEPTION)
{
printf("eth_select: not implemented for exceptions\n");
/* Nothing */
}
return resops;
}

View file

@ -206,7 +206,7 @@ unsigned operations;
}
if (operations & SR_SELECT_EXCEPTION)
{
printf("ip_select: not implemented for exceptions\n");
/* Nothing */
}
return resops;
}

View file

@ -316,12 +316,10 @@ unsigned operations;
/* Should handle special case when the interface is down */
resops |= SR_SELECT_WRITE;
}
#if DEBUG == 1
if (operations & SR_SELECT_EXCEPTION)
{
printf("udp_select: not implemented for exceptions\n");
/* Nothing */
}
#endif
return resops;
}