mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-05-07 00:36:21 +08:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user