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
belle-sip
Commits
e3a10ed8
Commit
e3a10ed8
authored
Feb 12, 2015
by
Gautier Pelloux-Prayer
Browse files
Remove gcc compilation warning
parent
36f7de4a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/wakelock.c
src/wakelock.c
+2
-2
No files found.
src/wakelock.c
View file @
e3a10ed8
...
...
@@ -98,7 +98,7 @@ static JNIEnv *get_jni_env(void) {
unsigned
long
wake_lock_acquire
(
const
char
*
tag
)
{
if
(
ctx
.
jvm
!=
NULL
&&
ctx
.
powerManager
!=
NULL
)
{
JNIEnv
*
env
;
if
(
env
=
get_jni_env
())
{
if
(
(
env
=
get_jni_env
())
)
{
jstring
tagString
=
(
*
env
)
->
NewStringUTF
(
env
,
tag
);
jobject
lock
=
(
*
env
)
->
CallObjectMethod
(
env
,
ctx
.
powerManager
,
ctx
.
newWakeLockID
,
ctx
.
PARTIAL_WAKE_LOCK
,
tagString
);
(
*
env
)
->
DeleteLocalRef
(
env
,
tagString
);
...
...
@@ -125,7 +125,7 @@ void wake_lock_release(unsigned long id) {
if
(
id
!=
0
)
{
jobject
lock
=
(
jobject
)
id
;
JNIEnv
*
env
;
if
(
env
=
get_jni_env
())
{
if
(
(
env
=
get_jni_env
())
)
{
(
*
env
)
->
CallVoidMethod
(
env
,
lock
,
ctx
.
releaseID
);
belle_sip_message
(
"wake_lock_release(): Android wake lock released [ref=%p]"
,
(
void
*
)
lock
);
(
*
env
)
->
DeleteGlobalRef
(
env
,
lock
);
...
...
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