summaryrefslogtreecommitdiff
path: root/libcpu
diff options
context:
space:
mode:
authorYonggang Luo <[email protected]>2025-09-27 08:20:12 +0800
committerR b b666 <[email protected]>2025-10-10 20:21:40 +0800
commit62bc4ba774b9137e8ca5fbdd579ebfd09b6be033 (patch)
tree874021dea5655c0e63c7b4816470bafd242e2102 /libcpu
parentd58958e39751d62e2781feb1752469083a943c68 (diff)
Remove rarely used rt_time_t
next_delay should be rt_tick_t Use time_t for RT_DEVICE_CTRL_RTC_GET_TIME
Diffstat (limited to 'libcpu')
-rw-r--r--libcpu/arm/s3c24x0/rtc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcpu/arm/s3c24x0/rtc.c b/libcpu/arm/s3c24x0/rtc.c
index ba2c45d443..60703f9d94 100644
--- a/libcpu/arm/s3c24x0/rtc.c
+++ b/libcpu/arm/s3c24x0/rtc.c
@@ -136,7 +136,7 @@ static rt_err_t rtc_control(rt_device_t dev, int cmd, void *args)
case RT_DEVICE_CTRL_RTC_GET_TIME:
/* read device */
rt_hw_rtc_get(&tmp);
- *((rt_time_t *)args) = timegm(&tmp);
+ *time = timegm(&tmp);
break;
case RT_DEVICE_CTRL_RTC_SET_TIME: