summaryrefslogtreecommitdiff
path: root/src/shared/macro.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-03-04 19:20:21 +0100
committerLennart Poettering <lennart@poettering.net>2014-03-04 20:02:50 +0100
commit1c231f56482546725c4dbd3303f70300bd3c63e9 (patch)
treedc0f3ff586db692d961264a23b2b23040c1ce53e /src/shared/macro.h
parentb5d742138f71e87312541a89aac5657015f50f48 (diff)
logind: make $XDG_RUNTIME_DIR a per-user tmpfs
This way each user allocates from his own pool, with its own size limit. This puts the size limit by default to 10% of the physical RAM size but makes it configurable in logind.conf.
Diffstat (limited to 'src/shared/macro.h')
-rw-r--r--src/shared/macro.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/macro.h b/src/shared/macro.h
index 5fd67c7aba..08a036b3b9 100644
--- 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]))