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:
37f1b60
)
android/system-emulator: Remove useless "static" qualifier
author
Anderson Lizardo
<anderson.lizardo@openbossa.org>
Sat, 4 Jan 2014 01:55:28 +0000
(21:55 -0400)
committer
Johan Hedberg
<johan.hedberg@intel.com>
Mon, 6 Jan 2014 19:22:39 +0000
(21:22 +0200)
The value of SYSTEM_SOCKET_PATH is just copied to another memory
location using memcpy() (on the same function), therefore the static
qualifier is unnecessary.
android/system-emulator.c
patch
|
blob
|
history
diff --git
a/android/system-emulator.c
b/android/system-emulator.c
index
2dc9ad8
..
f1c6622
100644
(file)
--- a/
android/system-emulator.c
+++ b/
android/system-emulator.c
@@
-185,8
+185,7
@@
static void signal_callback(int signum, void *user_data)
int main(int argc, char *argv[])
{
- static const char SYSTEM_SOCKET_PATH[] = "\0android_system";
-
+ const char SYSTEM_SOCKET_PATH[] = "\0android_system";
sigset_t mask;
struct sockaddr_un addr;
int fd;