chiark / gitweb /
remove unused includes
[elogind.git] / src / binfmt / binfmt.c
index cbba42f6dc8c3c48eebd4438f5aee3687b39a811..6028ed68c04b31e66ed85fcad69648e799682111 100644 (file)
 #include <string.h>
 #include <stdio.h>
 #include <limits.h>
-#include <stdarg.h>
 #include <getopt.h>
 
 #include "log.h"
-#include "hashmap.h"
 #include "strv.h"
 #include "util.h"
 #include "conf-files.h"
@@ -93,7 +91,7 @@ static int apply_file(const char *path, bool ignore_enoent) {
                         if (feof(f))
                                 break;
 
-                        log_error("Failed to read file '%s', ignoring: %m", path);
+                        log_error_errno(errno, "Failed to read file '%s', ignoring: %m", path);
                         return -errno;
                 }