toolbox: Fix date tool with /dev/alarm
Change-Id: I6f8ad2149244c89690d5d5caae8ec55429462210 Signed-off-by: Benoit Goby <benoit@android.com>
This commit is contained in:
parent
6e25786914
commit
d340734cd7
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ static int settime_alarm(struct timespec *ts) {
|
|||
if (fd < 0)
|
||||
return fd;
|
||||
|
||||
ret = ioctl(fd, ANDROID_ALARM_SET_RTC, &ts);
|
||||
ret = ioctl(fd, ANDROID_ALARM_SET_RTC, ts);
|
||||
close(fd);
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue