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

[or-cvs] fix signed/unsigned comparison, plus typo



Update of /home/or/cvsroot/src/common
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/common

Modified Files:
	crypto.c fakepoll.c 
Log Message:
fix signed/unsigned comparison, plus typo


Index: crypto.c
===================================================================
RCS file: /home/or/cvsroot/src/common/crypto.c,v
retrieving revision 1.108
retrieving revision 1.109
diff -u -d -r1.108 -r1.109
--- crypto.c	7 Oct 2004 21:37:06 -0000	1.108
+++ crypto.c	12 Oct 2004 19:09:40 -0000	1.109
@@ -1189,7 +1189,7 @@
   dh_param_g = g;
 }
 
-/** Allocate and return a new DH object for a key echange.
+/** Allocate and return a new DH object for a key exchange.
  */
 crypto_dh_env_t *crypto_dh_new()
 {

Index: fakepoll.c
===================================================================
RCS file: /home/or/cvsroot/src/common/fakepoll.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -d -r1.32 -r1.33
--- fakepoll.c	5 Jun 2004 01:56:54 -0000	1.32
+++ fakepoll.c	12 Oct 2004 19:09:40 -0000	1.33
@@ -42,7 +42,7 @@
 int
 tor_poll(struct pollfd *ufds, unsigned int nfds, int timeout)
 {
-        int i;
+        unsigned int i;
         for (i=0;i<nfds;++i) {
                 tor_assert(ufds[i].fd >= 0);
         }