]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
journal-gatewayd: use (void) to silence coverity
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 13 Apr 2015 02:46:37 +0000 (22:46 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 13 Apr 2015 02:46:37 +0000 (22:46 -0400)
CID #996297.

src/journal-remote/journal-gatewayd.c

index bba0d12ee78000af5fee8f8ff34dc05901deb71f..07aebd8c4b4590909e441822b3d1252fc3a81327 100644 (file)
@@ -781,7 +781,7 @@ static int request_handler_machine(
                 return mhd_respondf(connection, MHD_HTTP_INTERNAL_SERVER_ERROR, "Failed to determine disk usage: %s\n", strerror(-r));
 
         if (parse_env_file("/etc/os-release", NEWLINE, "PRETTY_NAME", &os_name, NULL) == -ENOENT)
-                parse_env_file("/usr/lib/os-release", NEWLINE, "PRETTY_NAME", &os_name, NULL);
+                (void) parse_env_file("/usr/lib/os-release", NEWLINE, "PRETTY_NAME", &os_name, NULL);
 
         get_virtualization(&v);