diff options
| author | Roy Marples <roy@marples.name> | 2008-08-02 19:59:13 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2008-08-02 19:59:13 +0000 |
| commit | 0f150036c930d1ebf68e07a4e7f6bf347fd55211 (patch) | |
| tree | d71dc7a14be7dd5b59b6115caf7d259c8c507c47 /common.c | |
| parent | b2a1ad13706b29461284d8aed7f2cdb3e1c0c382 (diff) | |
| download | dhcpcd-0f150036c930d1ebf68e07a4e7f6bf347fd55211.tar.xz | |
Fix compile on Darwin.
Diffstat (limited to 'common.c')
| -rw-r--r-- | common.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -231,15 +231,15 @@ get_monotonic(struct timeval *tp) } if (clock_monotonic) { nano = mach_absolute_time(); - if ((info.denom != 1 ¦¦ info.numer != 1) && factor != 0.0) + if ((info.denom != 1 || info.numer != 1) && factor != 0.0) nano *= factor; - tp.tv_sec = nano / NSEC_PER_SEC; + tp->tv_sec = nano / NSEC_PER_SEC; rem = nano % NSEC_PER_SEC; if (rem < 0) { - tp.tv_sec--; + tp->tv_sec--; rem += NSEC_PER_SEC; } - tp.tv_usec = rem / 1000; + tp->tv_usec = rem / 1000; return 0; } #endif |
