From 1a6c64660dde0c8c8f0d5af309a6152cee844f24 Mon Sep 17 00:00:00 2001 From: Michiel van Baak Date: Mon, 1 Dec 2008 14:05:41 +0000 Subject: [PATCH] make manager compile on OpenBSD. The last (10th) argument to ast_channel_alloc here should be a pointer and NULL is not really a pointer. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@159897 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/manager.c b/main/manager.c index fca2cda504..39b38b1a07 100644 --- a/main/manager.c +++ b/main/manager.c @@ -1501,7 +1501,7 @@ static int action_getvar(struct mansession *s, const struct message *m) if (varname[strlen(varname) - 1] == ')') { char *copy = ast_strdupa(varname); if (!c) { - c = ast_channel_alloc(0, 0, "", "", "", "", "", 0, "Bogus/%p", NULL); + c = ast_channel_alloc(0, 0, "", "", "", "", "", 0, "Bogus/%p", (char *) NULL); if (c) { ast_func_read(c, copy, workspace, sizeof(workspace)); ast_channel_free(c);