diff options
author | Nick Mathewson <nickm@torproject.org> | 2006-11-14 01:07:52 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2006-11-14 01:07:52 +0000 |
commit | 9243e5417704656dbfee91d2b6e06ae19f70aa24 (patch) | |
tree | 4a1957e97e4c4d36e0af0e74da1a5162fd60b1dc /src/or/rendclient.c | |
parent | 0f6402f17b9d4017aec608b10cb031512c543bc5 (diff) | |
download | tor-9243e5417704656dbfee91d2b6e06ae19f70aa24.tar.gz tor-9243e5417704656dbfee91d2b6e06ae19f70aa24.zip |
r9313@totoro: nickm | 2006-11-13 20:07:41 -0500
Try to compile with fewer warnings on irix64's MIPSpro compiler /
environment, which apparently believes that:
- off_t can be bigger than size_t.
- only mean kids assign things they do not subsequently inspect.
I don't try to fix the "error" that makes it say:
cc-3970 cc: WARNING File = main.c, Line = 1277
conversion from pointer to same-sized integral type (potential portability
problem)
uintptr_t sig = (uintptr_t)arg;
Because really, what can you do about a compiler that claims to be c99
but doesn't understand that void* x = NULL; uintptr_t y = (uintptr_t) x;
is safe?
svn:r8948
Diffstat (limited to 'src/or/rendclient.c')
-rw-r--r-- | src/or/rendclient.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/rendclient.c b/src/or/rendclient.c index 4d0cdd9fc3..32c7d2946a 100644 --- a/src/or/rendclient.c +++ b/src/or/rendclient.c @@ -134,7 +134,7 @@ rend_client_send_introduction(origin_circuit_t *introcirc, * to avoid buffer overflows? */ r = crypto_pk_public_hybrid_encrypt(entry->parsed->pk, payload+DIGEST_LEN, tmp, - dh_offset+DH_KEY_LEN, + (int)(dh_offset+DH_KEY_LEN), PK_PKCS1_OAEP_PADDING, 0); if (r<0) { log_warn(LD_BUG,"Internal error: hybrid pk encrypt failed."); |