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 19c0edfa6445f59eb7adc3c44814c9a87848394b..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,8
+18,11
@@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
-#include "mempool.h"
+#include <stdint.h>
+#include <stdlib.h>
+
#include "macro.h"
#include "macro.h"
+#include "mempool.h"
#include "util.h"
struct pool {
#include "util.h"
struct pool {
@@
-90,7
+91,7
@@
void mempool_free_tile(struct mempool *mp, void *p) {
#ifdef VALGRIND
#ifdef VALGRIND
-
// UNNEEDED
void mempool_drop(struct mempool *mp) {
+void mempool_drop(struct mempool *mp) {
struct pool *p = mp->first_pool;
while (p) {
struct pool *n;
struct pool *p = mp->first_pool;
while (p) {
struct pool *n;