[vlc-devel] commit: C++ compile fixes ( Rémi Denis-Courmont )
git version control
git at videolan.org
Mon May 26 17:52:35 CEST 2008
vlc | branch: master | Rémi Denis-Courmont <rem at videolan.org> | Mon May 26 18:54:07 2008 +0300| [021d3cb9e8d258d255bef48a4e629a4633593222]
C++ compile fixes
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=021d3cb9e8d258d255bef48a4e629a4633593222
---
include/vlc_fixups.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/vlc_fixups.h b/include/vlc_fixups.h
index b000648..790dc36 100644
--- a/include/vlc_fixups.h
+++ b/include/vlc_fixups.h
@@ -32,7 +32,7 @@
static inline char *strdup (const char *str)
{
size_t len = strlen (str) + 1;
- char *res = malloc (len);
+ char *res = (char *)malloc (len);
if (res) memcpy (res, str, len);
return res;
}
@@ -45,7 +45,7 @@ static inline char *strdup (const char *str)
static inline int vasprintf (char **strp, const char *fmt, va_list ap)
{
int len = vsnprintf (NULL, 0, fmt, ap) + 1;
- char *res = malloc (len);
+ char *res = (char *)malloc (len);
if (res == NULL)
return -1;
*strp = res;
More information about the vlc-devel
mailing list