Skip to content

Commit

Permalink
libocispec: update
Browse files Browse the repository at this point in the history
- update libocispec to c715dcdbab8fe592daa8a11cbabc75aa76534c80
- rename class to _class

Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
  • Loading branch information
Ecordonnier committed Apr 12, 2024
1 parent a1ed024 commit e24d6e0
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 e24d6e0

Please sign in to comment.