From: Christopher N. Hesse Date: Sun, 2 Apr 2017 11:24:47 +0000 (+0200) Subject: audience: Use O_WRONLY flag for write_int() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=658f447ad3e23cbcc754e31601888468d86470fc;p=GitHub%2FLineageOS%2Fandroid_hardware_samsung.git audience: Use O_WRONLY flag for write_int() Change-Id: I9a0bdc78644e7a4875d7e49051722fff3d47ee6b --- 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];