Skip to content
Snippets Groups Projects
Commit 2d04cdfb authored by Kees Bakker's avatar Kees Bakker
Browse files

cpu/native: do normal assignment instead of memcpy

parent 0935bd53
No related branches found
No related tags found
No related merge requests found
......@@ -142,7 +142,7 @@ int rtc_set_alarm(struct tm *time, rtc_alarm_cb_t cb, void *arg)
return -1;
}
memcpy(&_native_rtc_alarm, time, sizeof(_native_rtc_alarm));
_native_rtc_alarm = *time;
warnx("rtc_set_alarm: not implemented");
......@@ -162,7 +162,7 @@ int rtc_get_alarm(struct tm *time)
return -1;
}
memcpy(time, &_native_rtc_alarm, sizeof(_native_rtc_alarm));
*time = _native_rtc_alarm;
return 0;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment