code cleanup: vfont's used confusing and over complicated method of storing memory...
[blender-staging.git] / intern / guardedalloc / intern / mallocn.c
index df6f4d59c7f5de08262cb261fb8601c23f848793..a65871f4410cbed7efaa717c3d2b7cc5562a2690 100644 (file)
@@ -248,12 +248,12 @@ size_t MEM_allocN_len(const void *vmemh)
        }
 }
 
-void *MEM_dupallocN(void *vmemh)
+void *MEM_dupallocN(const void *vmemh)
 {
        void *newp = NULL;
        
        if (vmemh) {
-               MemHead *memh = vmemh;
+               const MemHead *memh = vmemh;
                memh--;
 
 #ifndef DEBUG_MEMDUPLINAME