chiark / gitweb /
fsckd: Reduce the SAK window when writing to console
[elogind.git] / src / path / path.c
index 65016cda3e18a18521fe7b3214bec4dc9c1e63a2..99a4f2f3c0058482340545325924a1151fcd21d3 100644 (file)
@@ -22,9 +22,7 @@
 #include <stdio.h>
 #include <getopt.h>
 #include <errno.h>
-#include <unistd.h>
 #include <stdlib.h>
-#include <string.h>
 
 #include "sd-path.h"
 #include "build.h"
@@ -108,10 +106,8 @@ static int print_home(const char *n) {
                         _cleanup_free_ char *p = NULL;
 
                         r = sd_path_home(i, arg_suffix, &p);
-                        if (r < 0) {
-                                log_error_errno(r, "Failed to query %s: %m", n);
-                                return r;
-                        }
+                        if (r < 0)
+                                return log_error_errno(r, "Failed to query %s: %m", n);
 
                         printf("%s\n", p);
                         return 0;