summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2013-05-09 09:32:31 +0200
committerLinus Nordberg <linus@nordberg.se>2013-05-09 09:35:16 +0200
commit4f9a7e63c1d14837ec880b9a63cc6a92a822e7d5 (patch)
tree3863e39c6f7710422c062c5a3462e82992911bd6
parent65a9a8786d5507e7f150567e4effd6e7409ac92c (diff)
Include stdlib.h everywhere we call (m|c)alloc.
-rw-r--r--lib/packet.c3
-rw-r--r--lib/tls.c3
-rw-r--r--lib/util.c1
3 files changed, 5 insertions, 2 deletions
diff --git a/lib/packet.c b/lib/packet.c
index 8135749..bfa82df 100644
--- a/lib/packet.c
+++ b/lib/packet.c
@@ -1,10 +1,11 @@
-/* Copyright 2010, 2011 NORDUnet A/S. All rights reserved.
+/* Copyright 2010-2013 NORDUnet A/S. All rights reserved.
See LICENSE for licensing information. */
#if defined HAVE_CONFIG_H
#include <config.h>
#endif
+#include <stdlib.h>
#include <assert.h>
#include <radius/client.h>
#include <event2/bufferevent.h>
diff --git a/lib/tls.c b/lib/tls.c
index a5040f4..ddf14c9 100644
--- a/lib/tls.c
+++ b/lib/tls.c
@@ -1,10 +1,11 @@
-/* Copyright 2010, 2011 NORDUnet A/S. All rights reserved.
+/* Copyright 2010-2013 NORDUnet A/S. All rights reserved.
See LICENSE for licensing information. */
#if defined HAVE_CONFIG_H
#include <config.h>
#endif
+#include <stdlib.h>
#include <assert.h>
#include <openssl/ssl.h>
#include <openssl/err.h>
diff --git a/lib/util.c b/lib/util.c
index 1142afa..e50d473 100644
--- a/lib/util.c
+++ b/lib/util.c
@@ -1,6 +1,7 @@
/* Copyright 2012,2013 NORDUnet A/S. All rights reserved.
See LICENSE for licensing information. */
+#include <stdlib.h>
#include <string.h>
#include <radsec/radsec.h>
#include <radsec/radsec-impl.h>