mirror of
https://github.com/team-infusion-developers/android_hardware_samsung.git
synced 2024-11-01 07:47:55 +00:00
audience: Use O_WRONLY flag for write_int()
Change-Id: I9a0bdc78644e7a4875d7e49051722fff3d47ee6b
This commit is contained in:
parent
2036814f43
commit
658f447ad3
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue