mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
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
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user