Replace several occurences of stdint types by lwIPs portability typedefs

Fixes bug #55405: Usage of uint8_t instead of ui8_t in TCP code
This commit is contained in:
Dirk Ziegelmeier
2019-01-06 21:19:04 +01:00
parent d504e27142
commit ea14b774c8
8 changed files with 22 additions and 22 deletions

View File

@@ -73,11 +73,11 @@ get_monotonic_time(struct timespec *ts)
{
#ifdef LWIP_UNIX_MACH
/* darwin impl (no CLOCK_MONOTONIC) */
uint64_t t = mach_absolute_time();
u64_t t = mach_absolute_time();
mach_timebase_info_data_t timebase_info = {0, 0};
mach_timebase_info(&timebase_info);
uint64_t nano = (t * timebase_info.numer) / (timebase_info.denom);
uint64_t sec = nano/1000000000L;
u64_t nano = (t * timebase_info.numer) / (timebase_info.denom);
u64_t sec = nano/1000000000L;
nano -= sec * 1000000000L;
ts->tv_sec = sec;
ts->tv_nsec = nano;