OSDN Git Service
(root)
/
android-x86
/
frameworks-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e982d83
)
Fix a compile error when debug is turned on
author
Matthew Xie
<mattx@google.com>
Tue, 13 Sep 2011 01:25:31 +0000
(18:25 -0700)
committer
Matthew Xie
<mattx@google.com>
Tue, 13 Sep 2011 01:25:31 +0000
(18:25 -0700)
logv uses a variable that is declared after its use
Change-Id: Id5c09698e4a0a91befa3ce2f60ce02ec28733889
core/jni/android_server_BluetoothEventLoop.cpp
patch
|
blob
|
history
diff --git
a/core/jni/android_server_BluetoothEventLoop.cpp
b/core/jni/android_server_BluetoothEventLoop.cpp
index
0335ce7
..
e8933fe
100644
(file)
--- a/
core/jni/android_server_BluetoothEventLoop.cpp
+++ b/
core/jni/android_server_BluetoothEventLoop.cpp
@@
-1562,8
+1562,8
@@
void onHealthDeviceConnectionResult(DBusMessage *msg, void *user, void *n) {
LOG_AND_FREE_DBUS_ERROR(&err);
}
- LOGV("... Health Device Code = %d, result = %d", code, result);
jint code = *(int *) user;
+ LOGV("... Health Device Code = %d, result = %d", code, result);
env->CallVoidMethod(nat->me,
method_onHealthDeviceConnectionResult,
code,