various: move ptr indicator to return value

This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2024-06-19 16:37:12 +02:00
parent bfd5a0687f
commit ff3f29537c
68 changed files with 148 additions and 148 deletions
+1 -1
View File
@@ -1197,7 +1197,7 @@ void job_add_to_dbus_queue(Job *j) {
j->in_dbus_queue = true;
}
char *job_dbus_path(Job *j) {
char* job_dbus_path(Job *j) {
char *p;
assert(j);
+1 -1
View File
@@ -218,7 +218,7 @@ int job_start_timer(Job *j, bool job_running);
int job_run_and_invalidate(Job *j);
int job_finish_and_invalidate(Job *j, JobResult result, bool recursive, bool already);
char *job_dbus_path(Job *j);
char* job_dbus_path(Job *j);
void job_shutdown_magic(Job *j);
+1 -1
View File
@@ -3410,7 +3410,7 @@ static int socket_get_timeout(Unit *u, usec_t *timeout) {
return 1;
}
char *socket_fdname(Socket *s) {
char* socket_fdname(Socket *s) {
assert(s);
/* Returns the name to use for $LISTEN_NAMES. If the user
+1 -1
View File
@@ -186,7 +186,7 @@ int socket_port_to_address(const SocketPort *s, char **ret);
int socket_load_service_unit(Socket *s, int cfd, Unit **ret);
char *socket_fdname(Socket *s);
char* socket_fdname(Socket *s);
extern const UnitVTable socket_vtable;
+2 -2
View File
@@ -3337,7 +3337,7 @@ int set_unit_path(const char *p) {
return RET_NERRNO(setenv("SYSTEMD_UNIT_PATH", p, 1));
}
char *unit_dbus_path(Unit *u) {
char* unit_dbus_path(Unit *u) {
assert(u);
if (!u->id)
@@ -3346,7 +3346,7 @@ char *unit_dbus_path(Unit *u) {
return unit_dbus_path_from_name(u->id);
}
char *unit_dbus_path_invocation_id(Unit *u) {
char* unit_dbus_path_invocation_id(Unit *u) {
assert(u);
if (sd_id128_is_null(u->invocation_id))
+2 -2
View File
@@ -886,8 +886,8 @@ bool unit_job_is_applicable(Unit *u, JobType j);
int set_unit_path(const char *p);
char *unit_dbus_path(Unit *u);
char *unit_dbus_path_invocation_id(Unit *u);
char* unit_dbus_path(Unit *u);
char* unit_dbus_path_invocation_id(Unit *u);
int unit_load_related_unit(Unit *u, const char *type, Unit **_found);