aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xprosodyctl1
-rw-r--r--util-src/crand.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/prosodyctl b/prosodyctl
index c54af270..3cbcde3b 100755
--- a/prosodyctl
+++ b/prosodyctl
@@ -233,6 +233,7 @@ local function make_host(hostname)
type = "local",
events = prosody.events,
modules = {},
+ sessions = {},
users = require "core.usermanager".new_null_provider(hostname)
};
end
diff --git a/util-src/crand.c b/util-src/crand.c
index 9a45f10f..735135fb 100644
--- 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