diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-07-15 22:06:15 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-07-15 22:06:15 +0000 |
commit | 63a6a077da4d1e6d4ec3c48b0d3bacccdbc958f2 (patch) | |
tree | 72a1219d1b5eeaaa08f28862bb67263d906f91ce /cli.c | |
parent | 467a58ed8f736f6233266937ee24625da783c9c2 (diff) |
phase two of string portability stuff:
don't need ast_ prefixes on functions
use individual #defines for function presence
add vasprintf to portability library
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6143 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'cli.c')
-rwxr-xr-x | cli.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -47,15 +47,10 @@ void ast_cli(int fd, char *fmt, ...) { char *stuff; int res = 0; - va_list ap; + va_start(ap, fmt); -#ifdef SOLARIS - stuff = (char *)malloc(10240); - vsnprintf(stuff, 10240, fmt, ap); -#else res = vasprintf(&stuff, fmt, ap); -#endif va_end(ap); if (res == -1) { ast_log(LOG_ERROR, "Out of memory\n"); |