Skip to content
Snippets Groups Projects
Commit 2a4ee349 authored by Takuya ASADA's avatar Takuya ASADA Committed by Pekka Enberg
Browse files

libc: get interval to correct field of itimerval

parent 2cb094fe
No related branches found
No related tags found
No related merge requests found
......@@ -430,7 +430,7 @@ int itimer::set(const struct itimerval *new_value,
WITH_LOCK(_mutex) {
if (old_value) {
get_interval(&old_value->it_value);
get_interval(&old_value->it_interval);
get_value(&old_value->it_value);
}
cancel();
......@@ -445,7 +445,7 @@ int itimer::set(const struct itimerval *new_value,
int itimer::get(struct itimerval *curr_value)
{
WITH_LOCK(_mutex) {
get_interval(&curr_value->it_value);
get_interval(&curr_value->it_interval);
get_value(&curr_value->it_value);
}
return 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment