From 658f447ad3e23cbcc754e31601888468d86470fc Mon Sep 17 00:00:00 2001 From: "Christopher N. Hesse" Date: Sun, 2 Apr 2017 13:24:47 +0200 Subject: [PATCH] audience: Use O_WRONLY flag for write_int() Change-Id: I9a0bdc78644e7a4875d7e49051722fff3d47ee6b --- audio/audience.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audio/audience.c b/audio/audience.c index 010b493..9b961be 100644 --- 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]; -- 2.20.1