Bug 812957 - Follow-up: Replace void\n* with void*\n. r=oops, a=blocking-basecamp
authorJustin Lebar <justin.lebar@gmail.com>
Mon, 19 Nov 2012 23:14:14 -0500
changeset 122385 e6265a22c963e85915104eda45a0211fc72c6ae4
parent 122384 2337b9d21743bd4755ab7503226eaf62faffce42
child 122386 8e0eab3895ccf5e4b3a943b7d9a10689d000aeb0
push id273
push userlsblakk@mozilla.com
push dateThu, 14 Feb 2013 23:19:38 +0000
treeherdermozilla-release@c5e807a3f8b8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersoops, blocking-basecamp
bugs812957
milestone19.0a2
Bug 812957 - Follow-up: Replace void\n* with void*\n. r=oops, a=blocking-basecamp
gfx/thebes/gfxAndroidPlatform.cpp
--- a/gfx/thebes/gfxAndroidPlatform.cpp
+++ b/gfx/thebes/gfxAndroidPlatform.cpp
@@ -44,33 +44,33 @@ NS_MEMORY_REPORTER_IMPLEMENT(Freetype,
     UNITS_BYTES,
     GetFreetypeSize,
     "Memory used by Freetype."
 )
 
 NS_MEMORY_REPORTER_MALLOC_SIZEOF_FUN(FreetypeMallocSizeOfForCounterInc, "freetype")
 NS_MEMORY_REPORTER_MALLOC_SIZEOF_FUN_UN(FreetypeMallocSizeOfForCounterDec)
 
-static void
-*CountingAlloc(FT_Memory memory, long size)
+static void*
+CountingAlloc(FT_Memory memory, long size)
 {
     void *p = malloc(size);
     sFreetypeMemoryUsed += FreetypeMallocSizeOfForCounterInc(p);
     return p;
 }
 
 static void
 CountingFree(FT_Memory memory, void* p)
 {
     sFreetypeMemoryUsed -= FreetypeMallocSizeOfForCounterDec(p);
     free(p);
 }
 
-static void
-*CountingRealloc(FT_Memory memory, long cur_size, long new_size, void* p)
+static void*
+CountingRealloc(FT_Memory memory, long cur_size, long new_size, void* p)
 {
     sFreetypeMemoryUsed -= FreetypeMallocSizeOfForCounterDec(p);
     void *pnew = realloc(p, new_size);
     if (pnew) {
         sFreetypeMemoryUsed += FreetypeMallocSizeOfForCounterInc(pnew);
     } else {
         // realloc failed;  undo the decrement from above
         sFreetypeMemoryUsed += FreetypeMallocSizeOfForCounterInc(p);