]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Use ast_str_append() instead of ast_build_string() to construct
authorLuigi Rizzo <rizzo@icir.org>
Sat, 21 Jul 2007 02:33:25 +0000 (02:33 +0000)
committerLuigi Rizzo <rizzo@icir.org>
Sat, 21 Jul 2007 02:33:25 +0000 (02:33 +0000)
commit10d1b9347cb6632436a24c90a5a9dedd8298b5f4
tree23164c8bad5306befd20ab1415e660dcda3d8ca8
parent94bb75cb7b5d9ceb0862d18b77a12967c85f6e5e
Use ast_str_append() instead of ast_build_string() to construct
the sdp messages. Overall the code is slightly more readable
(because the string is fully described by a single pointer),
and more efficient (because the length is stored explicitly
so you don't need to do strlen()).
(I have been using this code for almost a year now.)

I wish we had infix string operators to do this sort of things!

Nothing to backport from this change.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@76229 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_sip.c