tree-wide: port everything over to new sd-id128 compund literal bliss
This commit is contained in:
+3
-7
@@ -2550,7 +2550,6 @@ static int setup_hostname(void) {
|
||||
|
||||
static int setup_journal(const char *directory) {
|
||||
_cleanup_free_ char *d = NULL;
|
||||
char id[SD_ID128_STRING_MAX];
|
||||
const char *dirname, *p, *q;
|
||||
sd_id128_t this_id;
|
||||
bool try;
|
||||
@@ -2571,7 +2570,7 @@ static int setup_journal(const char *directory) {
|
||||
|
||||
if (sd_id128_equal(arg_uuid, this_id)) {
|
||||
log_full(try ? LOG_WARNING : LOG_ERR,
|
||||
"Host and machine ids are equal (%s): refusing to link journals", sd_id128_to_string(arg_uuid, id));
|
||||
"Host and machine ids are equal (%s): refusing to link journals", SD_ID128_TO_STRING(arg_uuid));
|
||||
if (try)
|
||||
return 0;
|
||||
return -EEXIST;
|
||||
@@ -2587,9 +2586,7 @@ static int setup_journal(const char *directory) {
|
||||
}
|
||||
}
|
||||
|
||||
(void) sd_id128_to_string(arg_uuid, id);
|
||||
|
||||
p = strjoina("/var/log/journal/", id);
|
||||
p = strjoina("/var/log/journal/", SD_ID128_TO_STRING(arg_uuid));
|
||||
q = prefix_roota(directory, p);
|
||||
|
||||
if (path_is_mount_point(p, NULL, 0) > 0) {
|
||||
@@ -3183,7 +3180,6 @@ static int inner_child(
|
||||
char **os_release_pairs) {
|
||||
|
||||
_cleanup_free_ char *home = NULL;
|
||||
char as_uuid[ID128_UUID_STRING_MAX];
|
||||
size_t n_env = 1;
|
||||
char *envp[] = {
|
||||
(char*) "PATH=" DEFAULT_PATH_COMPAT,
|
||||
@@ -3432,7 +3428,7 @@ static int inner_child(
|
||||
|
||||
assert(!sd_id128_is_null(arg_uuid));
|
||||
|
||||
if (asprintf(envp + n_env++, "container_uuid=%s", id128_to_uuid_string(arg_uuid, as_uuid)) < 0)
|
||||
if (asprintf(envp + n_env++, "container_uuid=%s", ID128_TO_UUID_STRING(arg_uuid)) < 0)
|
||||
return log_oom();
|
||||
|
||||
if (fdset_size(fds) > 0) {
|
||||
|
||||
Reference in New Issue
Block a user