X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Freadahead-replay.c;h=0b84528b0ee3d27dbae8cc8ccaa75511e6322200;hp=3984c36c3e4dfdb2deab50d0efbcc06049de99d3;hb=d5762cf5404cbbf557df014b04ee1e29ce852823;hpb=37f85e66e8f396b6f758e063531b95531aef628e diff --git a/src/readahead-replay.c b/src/readahead-replay.c index 3984c36c3..0b84528b0 100644 --- a/src/readahead-replay.c +++ b/src/readahead-replay.c @@ -122,7 +122,8 @@ static int replay(const char *root) { FILE *pack = NULL; char line[LINE_MAX]; int r = 0; - char *pack_fn = NULL, c; + char *pack_fn = NULL; + int c; bool on_ssd, ready = false; int prio; int inotify_fd = -1; @@ -192,7 +193,7 @@ static int replay(const char *root) { log_debug("Replaying..."); - if (access("/dev/.run/systemd/readahead/noreplay", F_OK) >= 0) { + if (access("/run/systemd/readahead/noreplay", F_OK) >= 0) { log_debug("Got termination request"); goto done; }