Include stdlib.h everywhere we call (m|c)alloc.
authorLinus Nordberg <linus@nordberg.se>
Thu, 9 May 2013 07:32:31 +0000 (09:32 +0200)
committerLinus Nordberg <linus@nordberg.se>
Thu, 9 May 2013 07:35:16 +0000 (09:35 +0200)
lib/packet.c
lib/tls.c
lib/util.c

index 8135749..bfa82df 100644 (file)
@@ -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>
index a5040f4..ddf14c9 100644 (file)
--- 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>
index 1142afa..e50d473 100644 (file)
@@ -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>