From d340734cd76c4d270c24f640c6a65d3f6218e46f Mon Sep 17 00:00:00 2001 From: Benoit Goby Date: Thu, 9 Jan 2014 18:59:23 -0800 Subject: [PATCH] toolbox: Fix date tool with /dev/alarm Change-Id: I6f8ad2149244c89690d5d5caae8ec55429462210 Signed-off-by: Benoit Goby --- toolbox/date.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toolbox/date.c b/toolbox/date.c index ed307c08b..d6c90520e 100644 --- a/toolbox/date.c +++ b/toolbox/date.c @@ -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; }