Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/rtadvd Expect long long to be larger than uint32_t ...
details: https://anonhg.NetBSD.org/src/rev/7fcfd1948b81
branches: trunk
changeset: 327111:7fcfd1948b81
user: joerg <joerg%NetBSD.org@localhost>
date: Thu Feb 27 17:43:02 2014 +0000
description:
Expect long long to be larger than uint32_t and use llabs after casting
the uint32_t.
diffstat:
usr.sbin/rtadvd/rtadvd.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 5fb4aca06b3b -r 7fcfd1948b81 usr.sbin/rtadvd/rtadvd.c
--- a/usr.sbin/rtadvd/rtadvd.c Thu Feb 27 17:42:23 2014 +0000
+++ b/usr.sbin/rtadvd/rtadvd.c Thu Feb 27 17:43:02 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rtadvd.c,v 1.45 2014/01/26 08:31:17 plunky Exp $ */
+/* $NetBSD: rtadvd.c,v 1.46 2014/02/27 17:43:02 joerg Exp $ */
/* $KAME: rtadvd.c,v 1.92 2005/10/17 14:40:02 suz Exp $ */
/*
@@ -1249,7 +1249,7 @@
preferred_time += now.tv_sec;
if (!pp->timer && rai->clockskew &&
- abs(preferred_time - pp->pltimeexpire) > rai->clockskew) {
+ llabs((long long)preferred_time - pp->pltimeexpire) > rai->clockskew) {
syslog(LOG_INFO,
"<%s> preferred lifetime for %s/%d"
" (decr. in real time) inconsistent on %s:"
@@ -1285,7 +1285,7 @@
valid_time += now.tv_sec;
if (!pp->timer && rai->clockskew &&
- abs(valid_time - pp->vltimeexpire) > rai->clockskew) {
+ llabs((long long)valid_time - pp->vltimeexpire) > rai->clockskew) {
syslog(LOG_INFO,
"<%s> valid lifetime for %s/%d"
" (decr. in real time) inconsistent on %s:"
Home |
Main Index |
Thread Index |
Old Index