Skip to content

Commit

Permalink
selinux_transition: don't use type inference for errno_str
Browse files Browse the repository at this point in the history
There is little need to use type inference for errno_str; just use char
* for clarity

Signed-off-by: Rahul Sandhu <[email protected]>
  • Loading branch information
WavyEbuilder committed Dec 18, 2024
1 parent cc8bcb7 commit 653ecf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dinit.cc
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ static bool selinux_transition(const char *exe)
bool bail = true;
// If stat(2) fails below, errno will be overwritten. The information contained in errno
// from the failed mkdir(2) is likely to be more useful, so let's display that instead.
auto *errno_str = strerror(errno);
char *errno_str = strerror(errno);
struct stat proc_stat;
// /proc already exists and is a directory
if (stat("/proc", &proc_stat) == 0 && S_ISDIR(proc_stat.st_mode)) bail = false;
Expand Down

0 comments on commit 653ecf4

Please sign in to comment.