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: make use of util.h's page_size() call
[elogind.git]
/
src
/
readahead
/
readahead-analyze.c
diff --git
a/src/readahead/readahead-analyze.c
b/src/readahead/readahead-analyze.c
index 5a5b9176d0837b14ed75c19b6fc94b0037da06ef..9c328a5f58f12a5ac21979a8ffbc95902e1ca4d6 100644
(file)
--- a/
src/readahead/readahead-analyze.c
+++ b/
src/readahead/readahead-analyze.c
@@
-45,7
+45,6
@@
int main_analyze(const char *pack_path)
uint32_t b;
uint32_t c;
struct stat st;
- int pagesize = getpagesize();
if (!pack_path)
pack_path = "/.readahead";
@@
-109,7
+108,7
@@
int main_analyze(const char *pack_path)
if (sections == 0)
size = st.st_size;
else
- size = pages * page
size
;
+ size = pages * page
_size()
;
tsize += size;