projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3f3aca
)
util.crand: Include stdlib.h instead of malloc.h for portability (thanks Tobias)
author
Kim Alvefur
<zash@zash.se>
Mon, 22 Feb 2016 21:56:05 +0000
(22:56 +0100)
committer
Kim Alvefur
<zash@zash.se>
Mon, 22 Feb 2016 21:56:05 +0000
(22:56 +0100)
util-src/crand.c
patch
|
blob
|
history
diff --git
a/util-src/crand.c
b/util-src/crand.c
index 9a45f10f5daedf3fee4adbb5aa054adef2cdf0e1..735135fb81a416de72ad849cf433bc5823c6aac6 100644
(file)
--- a/
util-src/crand.c
+++ b/
util-src/crand.c
@@
-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