chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
basic/strv: use SWAP_TWO() macro (#3602)
[elogind.git]
/
src
/
basic
/
mempool.c
diff --git
a/src/basic/mempool.c
b/src/basic/mempool.c
index 4916361e18ded1ebeaef485fc24024313f0f7c95..f95e2beb0ffd46ef08f0bc5b227e419947a2737c 100644
(file)
--- a/
src/basic/mempool.c
+++ b/
src/basic/mempool.c
@@
-1,5
+1,3
@@
-/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
-
/***
This file is part of systemd.
/***
This file is part of systemd.
@@
-20,6
+18,9
@@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
+#include <stdint.h>
+#include <stdlib.h>
+
#include "macro.h"
#include "mempool.h"
#include "util.h"
#include "macro.h"
#include "mempool.h"
#include "util.h"
@@
-88,8
+89,6
@@
void mempool_free_tile(struct mempool *mp, void *p) {
mp->freelist = p;
}
mp->freelist = p;
}
-/// UNNEEDED by elogind
-#if 0
#ifdef VALGRIND
void mempool_drop(struct mempool *mp) {
#ifdef VALGRIND
void mempool_drop(struct mempool *mp) {
@@
-103,4
+102,3
@@
void mempool_drop(struct mempool *mp) {
}
#endif
}
#endif
-#endif // 0