projects
/
GitHub
/
LineageOS
/
android_hardware_samsung.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2036814
)
audience: Use O_WRONLY flag for write_int()
author
Christopher N. Hesse
<raymanfx@gmail.com>
Sun, 2 Apr 2017 11:24:47 +0000
(13:24 +0200)
committer
Christopher N. Hesse
<raymanfx@gmail.com>
Sun, 2 Apr 2017 12:12:54 +0000
(14:12 +0200)
Change-Id: I9a0bdc78644e7a4875d7e49051722fff3d47ee6b
audio/audience.c
patch
|
blob
|
blame
|
history
diff --git
a/audio/audience.c
b/audio/audience.c
index 010b493df6bc2cd071ddba0d3d8592187d1b34bb..9b961becf8c530b5151480ed39ff9b4b5075545d 100644
(file)
--- a/
audio/audience.c
+++ b/
audio/audience.c
@@
-38,7
+38,7
@@
static int write_int(char const *path, const int value)
int fd;
ALOGV("write_int: path %s, value %d", path, value);
- fd = open(path, O_
RDWR
);
+ fd = open(path, O_
WRONLY
);
if (fd >= 0) {
char buffer[20];