#include "unit-printf.h"
#include "dbus-service.h"
#include "special.h"
-#include "bus-errors.h"
+#include "dbus-common.h"
#include "exit-status.h"
#include "def.h"
#include "path-util.h"
ServiceExecCommand c;
Service *s = SERVICE(u);
const char *prefix2;
- char _cleanup_free_ *p2 = NULL;
+ _cleanup_free_ char *p2 = NULL;
assert(s);
}
static int service_load_pid_file(Service *s, bool may_warn) {
- char _cleanup_free_ *k = NULL;
+ _cleanup_free_ char *k = NULL;
int r;
pid_t pid;
pid_t pid;
int r;
int *fds = NULL;
- int _cleanup_free_ *fdsbuf = NULL;
+ _cleanup_free_ int *fdsbuf = NULL;
unsigned n_fds = 0, n_env = 0;
- char _cleanup_strv_free_
+ _cleanup_strv_free_ char
**argv = NULL, **final_env = NULL, **our_env = NULL;
assert(s);
static int service_enumerate(Manager *m) {
char **p;
unsigned i;
- DIR _cleanup_closedir_ *d = NULL;
- char _cleanup_free_ *path = NULL, *fpath = NULL, *name = NULL;
- Set *runlevel_services[ELEMENTSOF(rcnd_table)];
- Set _cleanup_set_free_ *shutdown_services = NULL;
+ _cleanup_closedir_ DIR *d = NULL;
+ _cleanup_free_ char *path = NULL, *fpath = NULL, *name = NULL;
+ Set *runlevel_services[ELEMENTSOF(rcnd_table)] = {};
+ _cleanup_set_free_ Set *shutdown_services = NULL;
Unit *service;
Iterator j;
int r;
if (m->running_as != SYSTEMD_SYSTEM)
return 0;
- zero(runlevel_services);
-
STRV_FOREACH(p, m->lookup_paths.sysvrcnd_path)
for (i = 0; i < ELEMENTSOF(rcnd_table); i ++) {
struct dirent *de;