systemctl,networkctl,busctl,backlight: use STRPTR_IN_SET
This commit is contained in:
@@ -2003,8 +2003,7 @@ int main(int argc, char *argv[]) {
|
||||
goto finish;
|
||||
}
|
||||
|
||||
if (streq_ptr(argv[optind], "monitor") ||
|
||||
streq_ptr(argv[optind], "capture")) {
|
||||
if (STRPTR_IN_SET(argv[optind], "monitor", "capture")) {
|
||||
|
||||
r = sd_bus_set_monitor(bus, true);
|
||||
if (r < 0) {
|
||||
|
||||
Reference in New Issue
Block a user