chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
readahead: a bit of reformatting
[elogind.git]
/
src
/
readahead
/
sd-readahead.c
diff --git
a/src/readahead/sd-readahead.c
b/src/readahead/sd-readahead.c
index a3340666dd7326f3bcd8e0f713c563867c474d7d..d48cd768079e74166f716283368ae7795765af72 100644
(file)
--- a/
src/readahead/sd-readahead.c
+++ b/
src/readahead/sd-readahead.c
@@
-57,7
+57,8
@@
static int touch(const char *path) {
mkdir("/run/systemd", 0755);
mkdir("/run/systemd/readahead", 0755);
- if ((fd = open(path, O_WRONLY|O_CREAT|O_CLOEXEC|O_NOCTTY, 0666)) < 0)
+ fd = open(path, O_WRONLY|O_CREAT|O_CLOEXEC|O_NOCTTY, 0666);
+ if (fd < 0)
return -errno;
for (;;) {