Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Core
Tor
Commits
6249b0fd
Commit
6249b0fd
authored
Jul 28, 2009
by
Roger Dingledine
Browse files
Fix a signed/unsigned compile warning in 0.2.1.19
parent
69706f99
Changes
3
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
6249b0fd
Changes in version 0.2.1.20 - 2009-??-??
o Minor bugfixes:
- Fix a signed/unsigned compile warning in 0.2.1.19.
Changes in version 0.2.1.19 - 2009-07-28
o Major bugfixes:
- Make accessing hidden services on 0.2.1.x work right
...
...
src/or/config.c
View file @
6249b0fd
...
...
@@ -1224,10 +1224,10 @@ options_need_geoip_info(or_options_t *options, const char **reason_out)
/** Return the bandwidthrate that we are going to report to the authorities
* based on the config options. */
int
u
int
32_t
get_effective_bwrate
(
or_options_t
*
options
)
{
int
bw
=
(
int
)
options
->
BandwidthRate
;
u
int
32_t
bw
=
(
int
)
options
->
BandwidthRate
;
if
(
bw
>
options
->
MaxAdvertisedBandwidth
)
bw
=
(
int
)
options
->
MaxAdvertisedBandwidth
;
if
(
options
->
RelayBandwidthRate
>
0
&&
bw
>
options
->
RelayBandwidthRate
)
...
...
@@ -1237,10 +1237,10 @@ get_effective_bwrate(or_options_t *options)
/** Return the bandwidthburst that we are going to report to the authorities
* based on the config options. */
int
u
int
32_t
get_effective_bwburst
(
or_options_t
*
options
)
{
int
bw
=
(
int
)
options
->
BandwidthBurst
;
u
int
32_t
bw
=
(
int
)
options
->
BandwidthBurst
;
if
(
options
->
RelayBandwidthBurst
>
0
&&
bw
>
options
->
RelayBandwidthBurst
)
bw
=
(
int
)
options
->
RelayBandwidthBurst
;
return
bw
;
...
...
src/or/or.h
View file @
6249b0fd
...
...
@@ -2926,8 +2926,8 @@ int options_need_geoip_info(or_options_t *options, const char **reason_out);
int
getinfo_helper_config
(
control_connection_t
*
conn
,
const
char
*
question
,
char
**
answer
);
int
get_effective_bwrate
(
or_options_t
*
options
);
int
get_effective_bwburst
(
or_options_t
*
options
);
u
int
32_t
get_effective_bwrate
(
or_options_t
*
options
);
u
int
32_t
get_effective_bwburst
(
or_options_t
*
options
);
#ifdef CONFIG_PRIVATE
/* Used only by config.c and test.c */
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment