summaryrefslogtreecommitdiff
path: root/configs
diff options
context:
space:
mode:
authorDavid Vossel <dvossel@digium.com>2009-09-02 21:39:31 +0000
committerDavid Vossel <dvossel@digium.com>2009-09-02 21:39:31 +0000
commita83cf36204f0b7110ea1a15811ef21a9399f2aea (patch)
tree395d7d994594dcdcb93ac681c78a5b3cd814f9a7 /configs
parent0a67bc66107ad8f4e6e4e48fac27882a55cd10a9 (diff)
port string to int conversion using sscanf
There are several instances where a port is parsed from a uri or some other source and converted to an int value using atoi(), if for some reason the port string is empty, then a standard port is used. This logic is used over and over, so I created a function to handle it in a safer way using sscanf(). git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@215681 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'configs')
0 files changed, 0 insertions, 0 deletions