Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
Core
Tor
Commits
d1c8fd97
Commit
d1c8fd97
authored
18 years ago
by
Nick Mathewson
Browse files
Options
Downloads
Patches
Plain Diff
r8947@totoro: nickm | 2006-10-08 17:04:30 -0400
Fix signed/unsigned compare warning in eventdns.c svn:r8654
parent
327f3e93
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/or/eventdns.c
+2
-2
2 additions, 2 deletions
src/or/eventdns.c
with
2 additions
and
2 deletions
src/or/eventdns.c
+
2
−
2
View file @
d1c8fd97
...
...
@@ -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
)
{
in
t
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); \
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment