aboutsummaryrefslogtreecommitdiff
path: root/src/or/eventdns.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2006-10-08 21:05:06 +0000
committerNick Mathewson <nickm@torproject.org>2006-10-08 21:05:06 +0000
commitd1c8fd975915b1d7a2cc80271eba0295269f35bc (patch)
tree026400fe5f3d539ea1a06fd1f3273982fd9cf8e3 /src/or/eventdns.c
parent327f3e93bb418c0ab8a22011e3733ff203ca5f12 (diff)
downloadtor-d1c8fd975915b1d7a2cc80271eba0295269f35bc.tar
tor-d1c8fd975915b1d7a2cc80271eba0295269f35bc.tar.gz
r8947@totoro: nickm | 2006-10-08 17:04:30 -0400
Fix signed/unsigned compare warning in eventdns.c svn:r8654
Diffstat (limited to 'src/or/eventdns.c')
-rw-r--r--src/or/eventdns.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/eventdns.c b/src/or/eventdns.c
index 83679a134..aa45adf9f 100644
--- a/src/or/eventdns.c
+++ b/src/or/eventdns.c
@@ -1184,13 +1184,13 @@ static int
evdns_request_data_build(const char *const name, const int name_len, const u16 trans_id,
const u16 type, const u16 class,
u8 *const buf, size_t buf_len) {
- int j = 0; // current offset into buf
+ off_t j = 0; // current offset into buf
u16 _t; // used by the macros
u8 *labels;
int labels_len;
#define APPEND16(x) do { \
- if (j + 2 > buf_len) \
+ if (j + 2 > buf_len) \
return (-1); \
_t = htons(x); \
memcpy(buf + j, &_t, 2); \