"" and NULL are equivalent, but the latter is normally used.
pager_open(arg_pager_flags);
- r = bus_call_method(bus, bus_login_mgr, "ListInhibitors", &error, &reply, "");
+ r = bus_call_method(bus, bus_login_mgr, "ListInhibitors", &error, &reply, NULL);
if (r < 0)
return log_error_errno(r, "Could not get active inhibitors: %s", bus_error_message(&error, r));
unsigned n = 0;
int r;
- r = bus_call_method(bus, bus_login_mgr, "ListInhibitors", &error, &reply, "");
+ r = bus_call_method(bus, bus_login_mgr, "ListInhibitors", &error, &reply, NULL);
assert_se(r >= 0);
r = sd_bus_message_enter_container(reply, SD_BUS_TYPE_ARRAY, "(ssssuu)");
/* Type is reset to the original value when we release control of the session */
assert_se(!streq(type, "tty"));
- assert_se(bus_call_method(bus, &session, "ReleaseControl", NULL, NULL, "") >= 0);
+ assert_se(bus_call_method(bus, &session, "ReleaseControl", NULL, NULL, NULL) >= 0);
type = mfree(type);
assert_se(bus_get_property_string(bus, &session, "Type", NULL, &type) >= 0);
assert_se(streq(type, "tty"));