mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 14:23:30 +01:00
fix signed/unsigned comparison, plus typo
svn:r2451
This commit is contained in:
parent
e7241044e8
commit
1c757b917d
@ -1189,7 +1189,7 @@ static void init_dh_param() {
|
|||||||
dh_param_g = g;
|
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()
|
crypto_dh_env_t *crypto_dh_new()
|
||||||
{
|
{
|
||||||
|
@ -42,7 +42,7 @@
|
|||||||
int
|
int
|
||||||
tor_poll(struct pollfd *ufds, unsigned int nfds, int timeout)
|
tor_poll(struct pollfd *ufds, unsigned int nfds, int timeout)
|
||||||
{
|
{
|
||||||
int i;
|
unsigned int i;
|
||||||
for (i=0;i<nfds;++i) {
|
for (i=0;i<nfds;++i) {
|
||||||
tor_assert(ufds[i].fd >= 0);
|
tor_assert(ufds[i].fd >= 0);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user