X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Freadahead%2Freadahead-common.c;h=3ca48a7257b652f0391cdfa0150c27bdc1d1b7bc;hp=890886eca1a063413e6034066b7f1f3b9d872625;hb=4a3bb599609d687e0a501a748bfac491f5fb9f6c;hpb=de0671ee7fe465e108f62dcbbbe9366f81dd9e9a diff --git a/src/readahead/readahead-common.c b/src/readahead/readahead-common.c index 890886eca..3ca48a725 100644 --- a/src/readahead/readahead-common.c +++ b/src/readahead/readahead-common.c @@ -52,7 +52,9 @@ int file_verify(int fd, const char *fn, off_t file_size_max, struct stat *st) { } if (st->st_size <= 0 || st->st_size > file_size_max) { - log_debug("Not preloading file %s with size out of bounds %zu", fn, st->st_size); + assert_cc(sizeof(st->st_size) == 8); + log_debug("Not preloading file %s with size out of bounds %"PRIu64, + fn, st->st_size); return 0; } @@ -226,7 +228,7 @@ int open_inotify(void) { } ReadaheadShared *shared_get(void) { - int _cleanup_close_ fd = -1; + _cleanup_close_ int fd = -1; ReadaheadShared *m = NULL; mkdirs();