[asterisk-commits] trunk - r7853 in /trunk: include/asterisk/manager.h manager.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Sat Jan 7 09:23:39 CST 2006


Author: tilghman
Date: Sat Jan  7 09:23:38 2006
New Revision: 7853

URL: http://svn.digium.com/view/asterisk?rev=7853&view=rev
Log:
Bug 6162 - Constify manager_event arguments

Modified:
    trunk/include/asterisk/manager.h
    trunk/manager.c

Modified: trunk/include/asterisk/manager.h
URL: http://svn.digium.com/view/asterisk/trunk/include/asterisk/manager.h?rev=7853&r1=7852&r2=7853&view=diff
==============================================================================
--- trunk/include/asterisk/manager.h (original)
+++ trunk/include/asterisk/manager.h Sat Jan  7 09:23:38 2006
@@ -150,7 +150,7 @@
 	\param event	Event name
 	\param contents	Contents of event
 */ 
-extern int manager_event(int category, char *event, char *contents, ...)
+extern int manager_event(int category, const char *event, const char *contents, ...)
 	__attribute__ ((format (printf, 3,4)));
 
 /*! Get header from mananger transaction */

Modified: trunk/manager.c
URL: http://svn.digium.com/view/asterisk/trunk/manager.c?rev=7853&r1=7852&r2=7853&view=diff
==============================================================================
--- trunk/manager.c (original)
+++ trunk/manager.c Sat Jan  7 09:23:38 2006
@@ -1504,7 +1504,7 @@
 }
 
 /*! \brief  manager_event: Send AMI event to client */
-int manager_event(int category, char *event, char *fmt, ...)
+int manager_event(int category, const char *event, const char *fmt, ...)
 {
 	struct mansession *s;
 	char auth[80];



More information about the asterisk-commits mailing list