Skip to content

Commit

Permalink
Merge pull request #1448 from Ecordonnier/eco/bump-libocispec
Browse files Browse the repository at this point in the history
libocispec: update
  • Loading branch information
giuseppe authored Apr 12, 2024
2 parents a1ed024 + e6a8d51 commit 68df083
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libocispec
4 changes: 2 additions & 2 deletions src/libcrun/io_priority.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ libcrun_set_io_priority (pid_t pid, runtime_spec_schema_config_schema_process *p

class_value = -1;
for (i = 0; classes[i].name; i++)
if (strcmp (process->io_priority->class, classes[i].name) == 0)
if (strcmp (process->io_priority->_class, classes[i].name) == 0)
{
class_value = i;
break;
}
if (UNLIKELY (class_value < 0))
return crun_make_error (err, 0, "invalid io priority `%s`", process->io_priority->class);
return crun_make_error (err, 0, "invalid io priority `%s`", process->io_priority->_class);

value = IOPRIO_PRIO_VALUE (classes[class_value].value, process->io_priority->priority);

Expand Down

0 comments on commit 68df083

Please sign in to comment.