Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
belle-sip
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
4
Issues
4
List
Board
Labels
Milestones
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
External Wiki
External Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
BC
public
belle-sip
Commits
e3a10ed8
Commit
e3a10ed8
authored
Feb 12, 2015
by
Gautier Pelloux-Prayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
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