]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core/unit: voidify one snprintf statement 8284/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 26 Feb 2018 14:47:54 +0000 (15:47 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 26 Feb 2018 14:49:27 +0000 (15:49 +0100)
One more follow-up for f810b631cd.

src/core/unit.c

index cbb30155909aaae5961d51cb43ba0790f2104ec7..c3056624ef237192a69a7a706cab0201ab672790 100644 (file)
@@ -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 :