chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
journald: be more careful when we try to flush the runtime journal to disk and the...
[elogind.git]
/
src
/
journal
/
fsprg.c
diff --git
a/src/journal/fsprg.c
b/src/journal/fsprg.c
index 34ce3be96b707bca7844f38d7746f98de8ded31b..6817a629c83926dbab12af23359a92805f1f8412 100644
(file)
--- a/
src/journal/fsprg.c
+++ b/
src/journal/fsprg.c
@@
-74,7
+74,7
@@
static void uint64_export(void *buf, size_t buflen, uint64_t x) {
((uint8_t*) buf)[7] = (x >> 0) & 0xff;
}
((uint8_t*) buf)[7] = (x >> 0) & 0xff;
}
-static uint64_t uint64_import(const void *buf, size_t buflen) {
+
_pure_
static uint64_t uint64_import(const void *buf, size_t buflen) {
assert(buflen == 8);
return
(uint64_t)(((uint8_t*) buf)[0]) << 56 |
assert(buflen == 8);
return
(uint64_t)(((uint8_t*) buf)[0]) << 56 |
@@
-160,7
+160,7
@@
static gcry_mpi_t twopowmodphi(uint64_t m, const gcry_mpi_t p) {
gcry_mpi_sub_ui(phi, p, 1);
/* count number of used bits in m */
gcry_mpi_sub_ui(phi, p, 1);
/* count number of used bits in m */
- for (n = 0; (
(uint64_t)1
<< n) <= m; n++)
+ for (n = 0; (
1ULL
<< n) <= m; n++)
;
r = gcry_mpi_new(0);
;
r = gcry_mpi_new(0);