diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2013-11-01 03:18:47 -0700 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2013-11-01 03:18:47 -0700 |
commit | 86691b3a573e90c8040ba5b8c0abf039a9da5270 (patch) | |
tree | d874efdc1c4f9c790bdfcfa9e619c38d4af4dde8 /android/cutils | |
parent | 46a977c7a03b283ae04703e1337c819a92838305 (diff) | |
download | bluez-86691b3a573e90c8040ba5b8c0abf039a9da5270.tar.gz |
android: Allow connect() for property_set to fail
Diffstat (limited to 'android/cutils')
-rw-r--r-- | android/cutils/properties.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/android/cutils/properties.h b/android/cutils/properties.h index 9b7a8a0ad..79515852b 100644 --- a/android/cutils/properties.h +++ b/android/cutils/properties.h @@ -39,7 +39,7 @@ static inline int property_set(const char *key, const char *value) if (connect(fd, (struct sockaddr *) &addr, sizeof(addr)) < 0) { close(fd); - return -1; + return 0; } len = snprintf(msg, sizeof(msg), "%s=%s", key, value); |