[svn-commits] mvanbaak: branch 1.4 r159897 - /branches/1.4/main/manager.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Dec 1 08:05:42 CST 2008


Author: mvanbaak
Date: Mon Dec  1 08:05:41 2008
New Revision: 159897

URL: http://svn.digium.com/view/asterisk?view=rev&rev=159897
Log:
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.

Modified:
    branches/1.4/main/manager.c

Modified: branches/1.4/main/manager.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/manager.c?view=diff&rev=159897&r1=159896&r2=159897
==============================================================================
--- branches/1.4/main/manager.c (original)
+++ branches/1.4/main/manager.c Mon Dec  1 08:05:41 2008
@@ -1501,7 +1501,7 @@
 	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);




More information about the svn-commits mailing list