chiark / gitweb /
Always use errno > 0 to help gcc
[elogind.git] / src / readahead / readahead-common.c
index 1599ac15a476b628bc27b86a0176a446bf84bd86..81bb16c7a3c81319fe7f0735dee872de1967a68b 100644 (file)
@@ -33,6 +33,7 @@
 #include "readahead-common.h"
 #include "util.h"
 #include "missing.h"
+#include "fileio.h"
 
 int file_verify(int fd, const char *fn, off_t file_size_max, struct stat *st) {
         assert(fd >= 0);
@@ -227,7 +228,7 @@ int open_inotify(void) {
         mkdir("/run/systemd/readahead", 0755);
 
         if (inotify_add_watch(fd, "/run/systemd/readahead", IN_CREATE) < 0) {
-                log_error("Failed to add watch on /run/systemd/readahead: %m");
+                log_error("Failed to watch /run/systemd/readahead: %m");
                 close_nointr_nofail(fd);
                 return -errno;
         }