chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
logind: make $XDG_RUNTIME_DIR a per-user tmpfs
[elogind.git]
/
src
/
shared
/
macro.h
diff --git
a/src/shared/macro.h
b/src/shared/macro.h
index 5fd67c7abacde424a529e390d4ccff91f2ab5a39..08a036b3b95d497743d5d95cf9396b74498d3b61 100644
(file)
--- a/
src/shared/macro.h
+++ b/
src/shared/macro.h
@@
-98,7
+98,7
@@
static inline size_t ALIGN_TO(size_t l, size_t ali) {
return ((l + ali - 1) & ~(ali - 1));
}
-#define ALIGN_TO_PTR(p, ali) ((void*) ALIGN_TO((unsigned long) p))
+#define ALIGN_TO_PTR(p, ali) ((void*) ALIGN_TO((unsigned long) p
, ali
))
#define ELEMENTSOF(x) (sizeof(x)/sizeof((x)[0]))