From e68760ac0f8feaa95e7a31c1525b3b32d318b62d Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Fri, 22 Feb 2008 03:44:36 +0000 Subject: r14388@tombo: nickm | 2008-02-21 22:44:28 -0500 More 64-to-32 fixes. svn:r13672 --- src/or/command.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/or/command.c') diff --git a/src/or/command.c b/src/or/command.c index 66723d4dd0..d05f6cdae9 100644 --- a/src/or/command.c +++ b/src/or/command.c @@ -530,7 +530,7 @@ command_process_netinfo_cell(cell_t *cell, or_connection_t *conn) conn->handshake_state->received_versions); /* Decode the cell. */ timestamp = ntohl(get_uint32(cell->payload)); - if (abs(now - conn->handshake_state->sent_versions_at) < 180) { + if (labs(now - conn->handshake_state->sent_versions_at) < 180) { apparent_skew = now - timestamp; } @@ -574,7 +574,7 @@ command_process_netinfo_cell(cell_t *cell, or_connection_t *conn) /* Act on apparent skew. */ /** Warn when we get a netinfo skew with at least this value. */ #define NETINFO_NOTICE_SKEW 3600 - if (abs(apparent_skew) > NETINFO_NOTICE_SKEW && + if (labs(apparent_skew) > NETINFO_NOTICE_SKEW && router_get_by_digest(conn->identity_digest)) { char dbuf[64]; /*XXXX This should check the trustedness of the other side. */ -- cgit v1.2.3-54-g00ecf