audience: Use O_WRONLY flag for write_int()
authorChristopher N. Hesse <raymanfx@gmail.com>
Sun, 2 Apr 2017 11:24:47 +0000 (13:24 +0200)
committerChristopher N. Hesse <raymanfx@gmail.com>
Sun, 2 Apr 2017 12:12:54 +0000 (14:12 +0200)
Change-Id: I9a0bdc78644e7a4875d7e49051722fff3d47ee6b

audio/audience.c

index 010b493df6bc2cd071ddba0d3d8592187d1b34bb..9b961becf8c530b5151480ed39ff9b4b5075545d 100644 (file)
@@ -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];