Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Michał Sawicz <[email protected]>
  • Loading branch information
AlanGriffiths and Saviq authored Apr 12, 2024
1 parent 689e8af commit ef59c81
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/frame_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ int main(int argc, char const* argv[])
ConfigurationOption{[&](auto& option) { background_client.set_crash_background_colour(option);},
"diagnostic-background", "Colour of diagnostic screen background RGB", "0x380c24"},
ConfigurationOption{[&](auto& option) { background_client.set_crash_text_colour(option);},

"diagnostic-text", "Colour of diagnostic screen text RGB", "0xffffff"},
ConfigurationOption{[&] (auto& option) { background_client.set_diagnostic_path(option);},
"diagnostic-path", "Path (including filename) of diagnostic file", ""},
Expand Down
2 changes: 1 addition & 1 deletion src/snap_name_of.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ auto snap_name_of(miral::Application const& app, bool fallback_without_apparmor,

// EINVAL is what is returned when AppArmor isn't setup
// ENOPROTOOPT is what is returned when AppArmor doesn't have some Ubuntu patches (yet)
if (((errno == EINVAL)|| errno == ENOPROTOOPT) && fallback_without_apparmor)
if (((errno == EINVAL) || errno == ENOPROTOOPT) && fallback_without_apparmor)
{
mir::log_info("Fall back (without AppArmor): Identify client via /proc/%%d/cmdline");

Expand Down

0 comments on commit ef59c81

Please sign in to comment.