]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
fix warning on win32
authorNick Mathewson <nickm@torproject.org>
Thu, 14 Oct 2004 15:41:41 +0000 (15:41 +0000)
committerNick Mathewson <nickm@torproject.org>
Thu, 14 Oct 2004 15:41:41 +0000 (15:41 +0000)
svn:r2518

src/or/connection.c

index a5e857cf6c299aa72de2ba80da4298334d21279e..971ff370a4fffeefe2e744de5d83cef5da706c2e 100644 (file)
@@ -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);