audience: Use O_WRONLY flag for write_int()

Change-Id: I9a0bdc78644e7a4875d7e49051722fff3d47ee6b
tirimbino
Christopher N. Hesse 8 years ago
parent 2036814f43
commit 658f447ad3
  1. 2
      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];

Loading…
Cancel
Save