summaryrefslogtreecommitdiff
path: root/src/lib/malloc
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-06-21 16:25:31 -0400
committerNick Mathewson <nickm@torproject.org>2018-06-22 09:49:13 -0400
commit657ff55408d82f49fc9599cb662702cdc0995f08 (patch)
treea4928704eb3ab78590e7ea293ea0014aadc405ac /src/lib/malloc
parentb8be8265b6dc477efe591ccdb14fcd4b044dd241 (diff)
downloadtor-657ff55408d82f49fc9599cb662702cdc0995f08.tar.gz
tor-657ff55408d82f49fc9599cb662702cdc0995f08.zip
Split container.c based on container types, and minimize includes
Minimizing includes revealed other places includes were necessary.
Diffstat (limited to 'src/lib/malloc')
-rw-r--r--src/lib/malloc/util_malloc.c1
-rw-r--r--src/lib/malloc/util_malloc.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/malloc/util_malloc.c b/src/lib/malloc/util_malloc.c
index 4a0b3a9336..f3b0e50c70 100644
--- a/src/lib/malloc/util_malloc.c
+++ b/src/lib/malloc/util_malloc.c
@@ -12,7 +12,6 @@
#include "orconfig.h"
#include <stdlib.h>
-#include <stddef.h>
#include <string.h>
#include "lib/testsupport/testsupport.h"
diff --git a/src/lib/malloc/util_malloc.h b/src/lib/malloc/util_malloc.h
index 3da40351c6..88ecc04530 100644
--- a/src/lib/malloc/util_malloc.h
+++ b/src/lib/malloc/util_malloc.h
@@ -11,6 +11,8 @@
#ifndef TOR_UTIL_MALLOC_H
#define TOR_UTIL_MALLOC_H
+#include <stddef.h>
+#include <stdlib.h>
#include "lib/cc/compat_compiler.h"
/* Memory management */