X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fcore%2Funit.c;h=2f95737da00a8a41d7101580c04b355c1519776b;hp=23ad7c10e0739733cb7d0bab479392f003aecaf3;hb=63c372cb9df3bee01e3bf8cd7f96f336bddda846;hpb=82a2b6bb5e4e5d294f09af778c48974a7857afb6 diff --git a/src/core/unit.c b/src/core/unit.c index 23ad7c10e..2f95737da 100644 --- a/src/core/unit.c +++ b/src/core/unit.c @@ -868,7 +868,7 @@ void unit_dump(Unit *u, FILE *f, const char *prefix) { assert(u->type >= 0); prefix = strempty(prefix); - prefix2 = strappenda(prefix, "\t"); + prefix2 = strjoina(prefix, "\t"); fprintf(f, "%s-> Unit %s:\n" @@ -1399,7 +1399,6 @@ static void unit_status_log_starting_stopping_reloading(Unit *u, JobType t) { DISABLE_WARNING_FORMAT_NONLITERAL; snprintf(buf, sizeof(buf), format, unit_description(u)); - char_array_0(buf); REENABLE_WARNING; mid = t == JOB_START ? SD_MESSAGE_UNIT_STARTING :