audience: Use O_WRONLY flag for write_int()

Change-Id: I9a0bdc78644e7a4875d7e49051722fff3d47ee6b
This commit is contained in:
Christopher N. Hesse 2017-04-02 13:24:47 +02:00
parent 2036814f43
commit 658f447ad3

View 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];