summaryrefslogtreecommitdiffstats
path: root/common.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-08-02 19:59:13 +0000
committerRoy Marples <roy@marples.name>2008-08-02 19:59:13 +0000
commit0f150036c930d1ebf68e07a4e7f6bf347fd55211 (patch)
treed71dc7a14be7dd5b59b6115caf7d259c8c507c47 /common.c
parentb2a1ad13706b29461284d8aed7f2cdb3e1c0c382 (diff)
downloaddhcpcd-0f150036c930d1ebf68e07a4e7f6bf347fd55211.tar.xz
Fix compile on Darwin.
Diffstat (limited to 'common.c')
-rw-r--r--common.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/common.c b/common.c
index b509390f..f27bb482 100644
--- a/common.c
+++ b/common.c
@@ -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