[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] fix windows warnings



Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/tmp/cvs-serv20857/src/or

Modified Files:
	control.c 
Log Message:
fix windows warnings

Index: control.c
===================================================================
RCS file: /home/or/cvsroot/src/or/control.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- control.c	3 Nov 2004 19:49:03 -0000	1.4
+++ control.c	3 Nov 2004 21:53:54 -0000	1.5
@@ -118,7 +118,7 @@
   len = strlen(message);
   tor_assert(len < (256-2));
   memcpy(buf+2, message, len);
-  send_control_message(conn, CONTROL_CMD_ERROR, len+2, buf);
+  send_control_message(conn, CONTROL_CMD_ERROR, (uint16_t)(len+2), buf);
 }
 
 static void
@@ -181,7 +181,8 @@
   }
 
   msg = smartlist_join_strings2(answer_elements, "\0", 1, 0, &msg_len);
-  send_control_message(conn, CONTROL_CMD_CONFVALUE, msg_len, msg);
+  send_control_message(conn, CONTROL_CMD_CONFVALUE,
+                       (uint16_t)msg_len, msg);
 
  done:
   SMARTLIST_FOREACH(answer_elements, char *, cp, tor_free(cp));