diff options
author | Mark Michelson <mmichelson@digium.com> | 2009-04-09 17:34:39 +0000 |
---|---|---|
committer | Mark Michelson <mmichelson@digium.com> | 2009-04-09 17:34:39 +0000 |
commit | 5b5bd544badbc8c8eb563ffdc9fdfd046e215bcb (patch) | |
tree | a5dc20b19de4e6ea45ce0949ac57750ab692e69e /res/res_musiconhold.c | |
parent | 0058b02563a99ec007a108bc1f7ededed7bf75dd (diff) |
Use safe macro practices even though they really aren't necessary.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@187424 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_musiconhold.c')
-rw-r--r-- | res/res_musiconhold.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c index ade8d5325..01920e087 100644 --- a/res/res_musiconhold.c +++ b/res/res_musiconhold.c @@ -186,8 +186,8 @@ static struct ao2_container *mohclasses; 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) { |