Diff

util-src/crand.c @ 7189:72839cafdf36

util.crand: Include stdlib.h instead of malloc.h for portability (thanks Tobias)
author Kim Alvefur <zash@zash.se>
date Mon, 22 Feb 2016 22:56:05 +0100
parent 7187:3d2c2f0809ee
child 7439:4cccaa33b0a1
line wrap: on
line diff
--- a/util-src/crand.c	Mon Feb 22 18:44:43 2016 +0100
+++ b/util-src/crand.c	Mon Feb 22 22:56:05 2016 +0100
@@ -23,7 +23,7 @@
  * TODO: Decide on fixed size or dynamically allocated buffer
  */
 #if 1
-#include <malloc.h>
+#include <stdlib.h>
 #else
 #define BUFLEN 256
 #endif