[asterisk-commits] mmichelson: trunk r187424 - /trunk/res/res_musiconhold.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Apr 9 12:34:43 CDT 2009


Author: mmichelson
Date: Thu Apr  9 12:34:39 2009
New Revision: 187424

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=187424
Log:
Use safe macro practices even though they really aren't necessary.


Modified:
    trunk/res/res_musiconhold.c

Modified: trunk/res/res_musiconhold.c
URL: http://svn.digium.com/svn-view/asterisk/trunk/res/res_musiconhold.c?view=diff&rev=187424&r1=187423&r2=187424
==============================================================================
--- trunk/res/res_musiconhold.c (original)
+++ trunk/res/res_musiconhold.c Thu Apr  9 12:34:39 2009
@@ -186,8 +186,8 @@
 
 static int reload(void);
 
-#define mohclass_ref(class,string)   (ao2_t_ref((class), +1, string), class)
-#define mohclass_unref(class,string) (ao2_t_ref((class), -1, string), (struct mohclass *) NULL)
+#define mohclass_ref(class,string)   (ao2_t_ref((class), +1, (string)), class)
+#define mohclass_unref(class,string) (ao2_t_ref((class), -1, (string)), (struct mohclass *) NULL)
 
 static void moh_files_release(struct ast_channel *chan, void *data)
 {




More information about the asterisk-commits mailing list