Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
mediastreamer2
Commits
fb223b55
Commit
fb223b55
authored
Jul 13, 2012
by
Ghislain MARY
Browse files
Fix compilation on 32bits machines.
parent
e4362e10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/ice.c
src/ice.c
+4
-4
No files found.
src/ice.c
View file @
fb223b55
...
...
@@ -130,7 +130,7 @@ static void ice_session_init(IceSession *session)
{
session
->
streams
=
NULL
;
session
->
role
=
IR_Controlling
;
session
->
tie_breaker
=
(
random
()
<<
32
)
|
(
random
()
&
0xffffffff
);
session
->
tie_breaker
=
(
((
uint64_t
)
random
()
)
<<
32
)
|
(
((
uint64_t
)
random
()
)
&
0xffffffff
);
session
->
ta
=
ICE_DEFAULT_TA_DURATION
;
session
->
max_connectivity_checks
=
ICE_MAX_NB_CANDIDATE_PAIRS
;
session
->
local_ufrag
=
ms_malloc
(
9
);
...
...
@@ -714,12 +714,12 @@ static int ice_find_candidate_from_foundation(IceCandidate *candidate, const cha
static
void
ice_generate_arbitrary_foundation
(
char
*
foundation
,
int
len
,
MSList
*
list
)
{
long
long
unsigned
in
t
r
;
uint64_
t
r
;
MSList
*
elem
;
do
{
r
=
(
random
()
<<
32
)
|
random
(
);
snprintf
(
foundation
,
len
,
"%llx"
,
r
);
r
=
(
((
uint64_t
)
random
()
)
<<
32
)
|
(((
uint64_t
)
random
())
&
0xffffffff
);
snprintf
(
foundation
,
len
,
"%llx"
,
(
long
long
unsigned
int
)
r
);
elem
=
ms_list_find_custom
(
list
,
(
MSCompareFunc
)
ice_find_candidate_from_foundation
,
foundation
);
}
while
(
elem
!=
NULL
);
}
...
...
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