projects
/
prosody.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
util.crand: Include stdlib.h instead of malloc.h for portability (thanks Tobias)
[prosody.git]
/
util-src
/
crand.c
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