From: Zbigniew Jędrzejewski-Szmek Date: Mon, 26 Feb 2018 14:47:54 +0000 (+0100) Subject: core/unit: voidify one snprintf statement X-Git-Tag: v238~53^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F8284%2Fhead;p=thirdparty%2Fsystemd.git core/unit: voidify one snprintf statement One more follow-up for f810b631cd. --- diff --git a/src/core/unit.c b/src/core/unit.c index cbb30155909..c3056624ef2 100644 --- a/src/core/unit.c +++ b/src/core/unit.c @@ -1699,7 +1699,7 @@ static void unit_status_log_starting_stopping_reloading(Unit *u, JobType t) { format = unit_get_status_message_format(u, t); DISABLE_WARNING_FORMAT_NONLITERAL; - snprintf(buf, sizeof buf, format, unit_description(u)); + (void) snprintf(buf, sizeof buf, format, unit_description(u)); REENABLE_WARNING; mid = t == JOB_START ? "MESSAGE_ID=" SD_MESSAGE_UNIT_STARTING_STR :