projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2cc861
)
Reverting part of #67864 to be able to compile agi/eagi-test that relies on this...
author
Olle Johansson
<oej@edvina.net>
Thu, 7 Jun 2007 08:43:59 +0000
(08:43 +0000)
committer
Olle Johansson
<oej@edvina.net>
Thu, 7 Jun 2007 08:43:59 +0000
(08:43 +0000)
ast_log and other asterisk api functions available - I could not compile on OS/X without reverting
this.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@67991
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
main/strcompat.c
patch
|
blob
|
history
diff --git
a/main/strcompat.c
b/main/strcompat.c
index
912f64d
..
dbad22b
100644
(file)
--- a/
main/strcompat.c
+++ b/
main/strcompat.c
@@
-141,7
+141,7
@@
size_t strnlen(const char *s, size_t n)
char *strndup(const char *s, size_t n)
{
size_t len = strnlen(s, n);
- char *new = ast_malloc(len + 1);
+ char *new = malloc(len + 1);
if (!new)
return NULL;
@@
-162,7
+162,7
@@
int vasprintf(char **strp, const char *fmt, va_list ap)
va_copy(ap2, ap);
size = vsnprintf(&s, 1, fmt, ap2);
va_end(ap2);
- *strp = ast_malloc(size + 1);
+ *strp = malloc(size + 1);
if (!*strp)
return -1;
vsnprintf(*strp, size + 1, fmt, ap);