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
4e80774e
Commit
4e80774e
authored
Dec 04, 2009
by
Youness Alaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use GPOINTER_TO_UINT and GUINT_TO_POINTER to avoid an error when casting on kfreebsd
parent
aa9e040d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
tests/test-thread.c
tests/test-thread.c
+8
-8
No files found.
tests/test-thread.c
View file @
4e80774e
...
@@ -84,9 +84,9 @@ cb_new_selected_pair(NiceAgent *agent,
...
@@ -84,9 +84,9 @@ cb_new_selected_pair(NiceAgent *agent,
{
{
g_debug
(
"test-thread:%s: %p"
,
__func__
,
data
);
g_debug
(
"test-thread:%s: %p"
,
__func__
,
data
);
if
(
(
int
)
data
==
1
)
if
(
GPOINTER_TO_UINT
(
data
)
==
1
)
g_atomic_int_inc
(
&
global_lagent_cands
);
g_atomic_int_inc
(
&
global_lagent_cands
);
else
if
(
(
int
)
data
==
2
)
else
if
(
GPOINTER_TO_UINT
(
data
)
==
2
)
g_atomic_int_inc
(
&
global_ragent_cands
);
g_atomic_int_inc
(
&
global_ragent_cands
);
}
}
...
@@ -227,17 +227,17 @@ int main (void)
...
@@ -227,17 +227,17 @@ int main (void)
nice_agent_add_local_address
(
ragent
,
&
baseaddr
);
nice_agent_add_local_address
(
ragent
,
&
baseaddr
);
g_signal_connect
(
G_OBJECT
(
lagent
),
"candidate-gathering-done"
,
g_signal_connect
(
G_OBJECT
(
lagent
),
"candidate-gathering-done"
,
G_CALLBACK
(
cb_candidate_gathering_done
),
(
gpointer
)
1
);
G_CALLBACK
(
cb_candidate_gathering_done
),
GUINT_TO_POINTER
(
1
)
);
g_signal_connect
(
G_OBJECT
(
ragent
),
"candidate-gathering-done"
,
g_signal_connect
(
G_OBJECT
(
ragent
),
"candidate-gathering-done"
,
G_CALLBACK
(
cb_candidate_gathering_done
),
(
gpointer
)
2
);
G_CALLBACK
(
cb_candidate_gathering_done
),
GUINT_TO_POINTER
(
2
)
);
g_signal_connect
(
G_OBJECT
(
lagent
),
"component-state-changed"
,
g_signal_connect
(
G_OBJECT
(
lagent
),
"component-state-changed"
,
G_CALLBACK
(
cb_component_state_changed
),
(
gpointer
)
1
);
G_CALLBACK
(
cb_component_state_changed
),
GUINT_TO_POINTER
(
1
)
);
g_signal_connect
(
G_OBJECT
(
ragent
),
"component-state-changed"
,
g_signal_connect
(
G_OBJECT
(
ragent
),
"component-state-changed"
,
G_CALLBACK
(
cb_component_state_changed
),
(
gpointer
)
2
);
G_CALLBACK
(
cb_component_state_changed
),
GUINT_TO_POINTER
(
2
)
);
g_signal_connect
(
G_OBJECT
(
lagent
),
"new-selected-pair"
,
g_signal_connect
(
G_OBJECT
(
lagent
),
"new-selected-pair"
,
G_CALLBACK
(
cb_new_selected_pair
),
(
gpointer
)
1
);
G_CALLBACK
(
cb_new_selected_pair
),
GUINT_TO_POINTER
(
1
)
);
g_signal_connect
(
G_OBJECT
(
ragent
),
"new-selected-pair"
,
g_signal_connect
(
G_OBJECT
(
ragent
),
"new-selected-pair"
,
G_CALLBACK
(
cb_new_selected_pair
),
(
gpointer
)
2
);
G_CALLBACK
(
cb_new_selected_pair
),
GUINT_TO_POINTER
(
2
)
);
stun_server
=
getenv
(
"NICE_STUN_SERVER"
);
stun_server
=
getenv
(
"NICE_STUN_SERVER"
);
stun_server_port
=
getenv
(
"NICE_STUN_SERVER_PORT"
);
stun_server_port
=
getenv
(
"NICE_STUN_SERVER_PORT"
);
...
...
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