diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-10-14 15:41:41 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-10-14 15:41:41 +0000 |
commit | 0f144d6a040ae8870b4f683601d6d3d5fb252ec1 (patch) | |
tree | 45968b182f2f4fea0f5d4ceb8451f9387a7aac67 | |
parent | 96816bab06f5c17d618b59457468d02fffb28091 (diff) | |
download | tor-0f144d6a040ae8870b4f683601d6d3d5fb252ec1.tar tor-0f144d6a040ae8870b4f683601d6d3d5fb252ec1.tar.gz |
fix warning on win32
svn:r2518
-rw-r--r-- | src/or/connection.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/connection.c b/src/or/connection.c index a5e857cf6..971ff370a 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -734,8 +734,8 @@ int connection_handle_read(connection_t *conn) { /* There's a read error; kill the connection.*/ connection_close_immediate(conn); /* Don't flush; connection is dead. */ if(conn->type == CONN_TYPE_AP || conn->type == CONN_TYPE_EXIT) { - connection_edge_end(conn, connection_state_is_open(conn) ? - END_STREAM_REASON_MISC : END_STREAM_REASON_CONNECTFAILED, + connection_edge_end(conn, (char)(connection_state_is_open(conn) ? + END_STREAM_REASON_MISC : END_STREAM_REASON_CONNECTFAILED), conn->cpath_layer); } connection_mark_for_close(conn); |