OSDN Git Service
(root)
/
android-x86
/
external-bluetooth-bluez.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dec6e14
)
tools: Fix coding style when testing pointer
author
Claudio Takahasi
<claudio.takahasi@openbossa.org>
Fri, 21 Mar 2014 19:20:32 +0000
(16:20 -0300)
committer
Johan Hedberg
<johan.hedberg@intel.com>
Mon, 24 Mar 2014 09:02:53 +0000
(11:02 +0200)
This patch fixes tools/gatt-service.c coding style, using !ptr instead
of ptr == NULL.
tools/gatt-service.c
patch
|
blob
|
history
diff --git
a/tools/gatt-service.c
b/tools/gatt-service.c
index
cba0ff3
..
ef479ed
100644
(file)
--- a/
tools/gatt-service.c
+++ b/
tools/gatt-service.c
@@
-139,7
+139,7
@@
static void register_external_service(gpointer a, gpointer b)
msg = dbus_message_new_method_call("org.bluez", "/org/bluez",
GATT_MGR_IFACE, "RegisterService");
- if (
msg == NULL
) {
+ if (
!msg
) {
printf("Couldn't allocate D-Bus message\n");
return;
}