diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-02-22 03:44:36 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-02-22 03:44:36 +0000 |
commit | e68760ac0f8feaa95e7a31c1525b3b32d318b62d (patch) | |
tree | 998d3499d7ad8349797c2514123fd377466eb04e /src/or/command.c | |
parent | 3ced70730e64be2ee957cfb1e26da3da78597a73 (diff) | |
download | tor-e68760ac0f8feaa95e7a31c1525b3b32d318b62d.tar.gz tor-e68760ac0f8feaa95e7a31c1525b3b32d318b62d.zip |
r14388@tombo: nickm | 2008-02-21 22:44:28 -0500
More 64-to-32 fixes.
svn:r13672
Diffstat (limited to 'src/or/command.c')
-rw-r--r-- | src/or/command.c | 4 |
1 files changed, 2 insertions, 2 deletions
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. */ |