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
d06e5fd1
Commit
d06e5fd1
authored
Mar 31, 2011
by
Timothy Redaelli
Committed by
Youness Alaoui
Mar 31, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove some "set but not used" variables since GCC 4.6 emit a warning about that
parent
cb8c0886
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
agent/agent.c
agent/agent.c
+1
-2
tests/test-thread.c
tests/test-thread.c
+1
-2
No files found.
agent/agent.c
View file @
d06e5fd1
...
@@ -2812,14 +2812,13 @@ GSource* agent_timeout_add_with_context (NiceAgent *agent, guint interval,
...
@@ -2812,14 +2812,13 @@ GSource* agent_timeout_add_with_context (NiceAgent *agent, guint interval,
GSourceFunc
function
,
gpointer
data
)
GSourceFunc
function
,
gpointer
data
)
{
{
GSource
*
source
;
GSource
*
source
;
guint
id
;
g_return_val_if_fail
(
function
!=
NULL
,
0
);
g_return_val_if_fail
(
function
!=
NULL
,
0
);
source
=
g_timeout_source_new
(
interval
);
source
=
g_timeout_source_new
(
interval
);
g_source_set_callback
(
source
,
function
,
data
,
NULL
);
g_source_set_callback
(
source
,
function
,
data
,
NULL
);
id
=
g_source_attach
(
source
,
agent
->
main_context
);
g_source_attach
(
source
,
agent
->
main_context
);
return
source
;
return
source
;
}
}
...
...
tests/test-thread.c
View file @
d06e5fd1
...
@@ -179,7 +179,6 @@ int main (void)
...
@@ -179,7 +179,6 @@ int main (void)
{
{
NiceAgent
*
lagent
,
*
ragent
;
/* agent's L and R */
NiceAgent
*
lagent
,
*
ragent
;
/* agent's L and R */
NiceAddress
baseaddr
;
NiceAddress
baseaddr
;
guint
timer_id
;
const
char
*
stun_server
=
NULL
,
*
stun_server_port
=
NULL
;
const
char
*
stun_server
=
NULL
,
*
stun_server_port
=
NULL
;
GMainContext
*
lmainctx
,
*
rmainctx
;
GMainContext
*
lmainctx
,
*
rmainctx
;
GMainLoop
*
lmainloop
,
*
rmainloop
;
GMainLoop
*
lmainloop
,
*
rmainloop
;
...
@@ -218,7 +217,7 @@ int main (void)
...
@@ -218,7 +217,7 @@ int main (void)
g_object_set
(
G_OBJECT
(
ragent
),
"upnp"
,
FALSE
,
NULL
);
g_object_set
(
G_OBJECT
(
ragent
),
"upnp"
,
FALSE
,
NULL
);
/* step: add a timer to catch state changes triggered by signals */
/* step: add a timer to catch state changes triggered by signals */
timer_id
=
g_timeout_add
(
30000
,
timer_cb
,
NULL
);
g_timeout_add
(
30000
,
timer_cb
,
NULL
);
/* step: specify which local interface to use */
/* step: specify which local interface to use */
if
(
!
nice_address_set_from_string
(
&
baseaddr
,
"127.0.0.1"
))
if
(
!
nice_address_set_from_string
(
&
baseaddr
,
"127.0.0.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