Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Tor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Benjamin J. Thompson
Tor
Commits
b0767e85
Commit
b0767e85
authored
10 years ago
by
Nick Mathewson
Browse files
Options
Downloads
Patches
Plain Diff
Tell autoconf to make the compiler act as c99
Apparently some compilers want extra switches.
parent
0ca83872
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
configure.ac
+1
-0
1 addition, 0 deletions
configure.ac
src/common/address.c
+1
-2
1 addition, 2 deletions
src/common/address.c
with
2 additions
and
2 deletions
configure.ac
+
1
−
0
View file @
b0767e85
...
...
@@ -191,6 +191,7 @@ AM_CONDITIONAL(USE_FW_HELPER, test x$natpmp = xtrue || test x$upnp = xtrue)
AM_CONDITIONAL(NAT_PMP, test x$natpmp = xtrue)
AM_CONDITIONAL(MINIUPNPC, test x$upnp = xtrue)
AM_PROG_CC_C_O
AC_PROG_CC_C99
AC_ARG_VAR(PYTHON)
AC_CHECK_PROGS(PYTHON, [python python2 python2.7 python3 python3.3])
...
...
This diff is collapsed.
Click to expand it.
src/common/address.c
+
1
−
2
View file @
b0767e85
...
...
@@ -471,7 +471,6 @@ tor_addr_parse_PTR_name(tor_addr_t *result, const char *address,
if
(
!
strcasecmpend
(
address
,
".ip6.arpa"
))
{
const
char
*
cp
;
int
i
;
int
n0
,
n1
;
struct
in6_addr
in6
;
...
...
@@ -479,7 +478,7 @@ tor_addr_parse_PTR_name(tor_addr_t *result, const char *address,
return
-
1
;
cp
=
address
;
for
(
i
=
0
;
i
<
16
;
++
i
)
{
for
(
int
i
=
0
;
i
<
16
;
++
i
)
{
n0
=
hex_decode_digit
(
*
cp
++
);
/* The low-order nybble appears first. */
if
(
*
cp
++
!=
'.'
)
return
-
1
;
/* Then a dot. */
n1
=
hex_decode_digit
(
*
cp
++
);
/* The high-order nybble appears first. */
...
...
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