]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
fix signed/unsigned comparison, plus typo
authorRoger Dingledine <arma@torproject.org>
Tue, 12 Oct 2004 19:09:40 +0000 (19:09 +0000)
committerRoger Dingledine <arma@torproject.org>
Tue, 12 Oct 2004 19:09:40 +0000 (19:09 +0000)
svn:r2451

src/common/crypto.c
src/common/fakepoll.c

index 1692aac23ab5ef2ba9cffdee202f2acb71916c80..dfed70850c9b347f73bb8ad8009f322e1dad31d4 100644 (file)
@@ -1189,7 +1189,7 @@ static void init_dh_param() {
   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 f23c20e6521dfeb80032d1b589d01dce3d4cb005..52359fb27c7c860d3b1223a65d1e1cf6c747cf28 100644 (file)
@@ -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);
         }