_cleanup_(journal_terminate) PidRef journal_pid = PIDREF_NULL;
if (arg_verbose)
- (void) journal_fork(arg_runtime_scope, (const char**) STRV_MAKE(c.unit), &journal_pid);
+ (void) journal_fork(arg_runtime_scope, STRV_MAKE(c.unit), &journal_pid);
r = bus_call_with_hint(bus, m, "service", &reply);
if (r < 0)
return 0;
}
-int journal_fork(RuntimeScope scope, const char * const *units, PidRef *ret_pidref) {
+int journal_fork(RuntimeScope scope, char * const *units, PidRef *ret_pidref) {
int r;
assert(scope >= 0);
if (!is_main_thread())
return -EPERM;
- if (strv_isempty((char**) units))
+ if (strv_isempty(units))
return 0;
_cleanup_(sd_event_unrefp) sd_event *event = NULL;
#include "runtime-scope.h"
#include "set.h"
-int journal_fork(RuntimeScope scope, const char * const *units, PidRef *ret_pidref);
+int journal_fork(RuntimeScope scope, char * const *units, PidRef *ret_pidref);
void journal_terminate(PidRef *pidref);
ret = enqueue_marked_jobs(bus, w);
else {
if (arg_verbose)
- (void) journal_fork(arg_runtime_scope, (const char**) names, &journal_pid);
+ (void) journal_fork(arg_runtime_scope, names, &journal_pid);
STRV_FOREACH(name, names) {
_cleanup_(sd_bus_error_free) sd_bus_error error = SD_BUS_ERROR_NULL;