Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libnice
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
libnice
Commits
dd9976d9
Commit
dd9976d9
authored
Oct 08, 2008
by
Youness Alaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
a little cleaning, don't put the sanity check inside the function
parent
4064f7ab
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
stun/usages/timer.c
stun/usages/timer.c
+7
-5
No files found.
stun/usages/timer.c
View file @
dd9976d9
...
@@ -56,6 +56,13 @@
...
@@ -56,6 +56,13 @@
#define STUN_RELIABLE_TIMEOUT 7900
#define STUN_RELIABLE_TIMEOUT 7900
#if STUN_RELIABLE_TIMEOUT < STUN_END_TIMEOUT
/* Reliable timeout MUST be bigger (or equal) to end timeout, so that
* retransmissions never happen with reliable transports. */
# error Inconsistent STUN timeout values!
#endif
/**
/**
* Clock used throughout the STUN code.
* Clock used throughout the STUN code.
* STUN requires a monotonic 1kHz clock to operate properly.
* STUN requires a monotonic 1kHz clock to operate properly.
...
@@ -127,11 +134,6 @@ int stun_timer_refresh (stun_timer_t *timer)
...
@@ -127,11 +134,6 @@ int stun_timer_refresh (stun_timer_t *timer)
unsigned
delay
=
stun_timer_remainder
(
timer
);
unsigned
delay
=
stun_timer_remainder
(
timer
);
if
(
delay
==
0
)
if
(
delay
==
0
)
{
{
#if STUN_RELIABLE_TIMEOUT < STUN_END_TIMEOUT
/* Reliable timeout MUST be bigger (or equal) to end timeout, so that
* retransmissions never happen with reliable transports. */
# error Inconsistent STUN timeout values!
#endif
if
(
timer
->
delay
>=
STUN_END_TIMEOUT
)
if
(
timer
->
delay
>=
STUN_END_TIMEOUT
)
return
-
1
;
return
-
1
;
...
...
Write
Preview
Markdown
is supported
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