Skip to content

Commit

Permalink
rename class to _class
Browse files Browse the repository at this point in the history
Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
  • Loading branch information
Ecordonnier committed Apr 11, 2024
1 parent b79a1c5 commit 647ae53
Showing 1 changed file with 2 additions and 2 deletions.
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 647ae53

Please sign in to comment.