[or-cvs] fix warning on win32
Nick Mathewson
nickm at seul.org
Thu Oct 14 15:41:43 UTC 2004
Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/tmp/cvs-serv31432/src/or
Modified Files:
connection.c
Log Message:
fix warning on win32
Index: connection.c
===================================================================
RCS file: /home/or/cvsroot/src/or/connection.c,v
retrieving revision 1.262
retrieving revision 1.263
diff -u -d -r1.262 -r1.263
--- connection.c 14 Oct 2004 09:28:31 -0000 1.262
+++ connection.c 14 Oct 2004 15:41:41 -0000 1.263
@@ -734,8 +734,8 @@
/* 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);
More information about the tor-commits
mailing list