aboutsummaryrefslogtreecommitdiffstats
path: root/main/channel.c
diff options
context:
space:
mode:
authorrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2006-12-15 15:44:59 +0000
committerrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2006-12-15 15:44:59 +0000
commit1302caa9a0fd622926657e82de1273b2970c2617 (patch)
tree161d4101c449b6b2cb93c2c860f866655d25d056 /main/channel.c
parentb6f53a117339f9a85fe2e7047d010be08186eb70 (diff)
remove ast_safe_string_alloc() - it is completely
equivalent to asprintf(). git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48499 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/channel.c')
-rw-r--r--main/channel.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/main/channel.c b/main/channel.c
index 07d099c6a..75db6d28f 100644
--- a/main/channel.c
+++ b/main/channel.c
@@ -331,21 +331,6 @@ static int ast_check_hangup_locked(struct ast_channel *chan)
return res;
}
-/*! \brief printf the string into a correctly sized mallocd buffer, and return the buffer */
-char *ast_safe_string_alloc(const char *fmt, ...)
-{
- char *b2,buf[1];
- int len;
-
- va_list args;
- va_start(args, fmt);
- len = vsnprintf(buf, 1, fmt, args);
- b2 = ast_malloc(len+1);
- vsnprintf(b2, len+1, fmt, args);
- va_end(args);
- return b2;
-}
-
/*! \brief Initiate system shutdown */
void ast_begin_shutdown(int hangup)
{