]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Constify __ao2_ref_debug in astobj2
authorMatthew Jordan <mjordan@digium.com>
Wed, 12 Sep 2012 15:42:35 +0000 (15:42 +0000)
committerMatthew Jordan <mjordan@digium.com>
Wed, 12 Sep 2012 15:42:35 +0000 (15:42 +0000)
commite461247cefdd8ff227acd0e1e1455747fd3c68ec
treefe077cd2a48a34633ad6f8884ea9146efa1c860f
parente0e7434b6b37354af556c6a8ae9b58799c79976e
Constify __ao2_ref_debug in astobj2

When REF_DEBUG is enabled in certain files - most notably ccss.c - the 'tag'
parameter passed to __ao2_ref_debug will be a const char *.  The function
currently expects that parameter to not be const.  This causes a warning
when compiling, as the const qualifier is being discarded.  With dev-mode
enabled, this prevents compiling Asterisk.

This patch makes __ao2_ref_debug's tag and file parameters const.

(closes issue ASTERISK-20408)
Reported by: mjordan

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@372959 65c4cc65-6c06-0410-ace0-fbb531ad65f3
include/asterisk/astobj2.h
main/astobj2.c