Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2010-02-16 19:47:41 +0300
committerCampbell Barton <ideasman42@gmail.com>2010-02-16 19:47:41 +0300
commitaefe9be5db3f767c343bae56eb49621a78b7d5b2 (patch)
tree528f363100f80b47f15d265a23499eae781dbe50 /intern/guardedalloc/test/simpletest
parented540dd1f17eb4e8e81068509ffc93933a548aef (diff)
[#18961] Use const char * where appropriate (2.5)
from Sean Bartell (wtachi) added own changes bpy_props.c
Diffstat (limited to 'intern/guardedalloc/test/simpletest')
-rw-r--r--intern/guardedalloc/test/simpletest/memtest.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/intern/guardedalloc/test/simpletest/memtest.c b/intern/guardedalloc/test/simpletest/memtest.c
index ec72b0f01e5..51f1f491894 100644
--- a/intern/guardedalloc/test/simpletest/memtest.c
+++ b/intern/guardedalloc/test/simpletest/memtest.c
@@ -47,6 +47,12 @@
#include <config.h>
#endif
+static void mem_error_cb(const char *errorStr)
+{
+ fprintf(stderr, "%s", errorStr);
+ fflush(stderr);
+}
+
int main (int argc, char *argv[])
{
int verbose = 0;
@@ -75,7 +81,7 @@ int main (int argc, char *argv[])
/* Round one, do a normal allocation, and free the blocks again. */
/* ----------------------------------------------------------------- */
/* flush mem lib output to stderr */
- MEM_set_error_callback(stderr);
+ MEM_set_error_callback(mem_error_cb);
for (i = 0; i < NUM_BLOCKS; i++) {
int blocksize = 10000;