changeset 2469:2d7b190acc76

Indeed 'new' might not be a C keyword, but it's a C++ keyword and thus not recommended to be used as a identifier.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 29 Mar 2008 12:08:06 +0200
parents 615b67c4e010
children 2848669e63a4
files src/madplug/input.c
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/madplug/input.c	Sat Mar 29 12:06:38 2008 +0200
+++ b/src/madplug/input.c	Sat Mar 29 12:08:06 2008 +0200
@@ -138,14 +138,14 @@
 id3_ucs4_t *
 mad_ucs4dup(id3_ucs4_t *org)
 {
-    id3_ucs4_t *new = NULL;
+    id3_ucs4_t *res = NULL;
     size_t len = mad_ucs4len(org);
 
-    new = g_malloc0((len + 1) * sizeof(id3_ucs4_t));
-    memcpy(new, org, len * sizeof(id3_ucs4_t));
-    *(new + len) = 0; //terminate
+    res = g_malloc0((len + 1) * sizeof(id3_ucs4_t));
+    memcpy(res, org, len * sizeof(id3_ucs4_t));
+    *(res + len) = 0; //terminate
 
-    return new;
+    return res;
 }
 
 #define BYTES(x) ((x) * sizeof(id3_ucs4_t))