aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorJason Evans <jasone@canonware.com>2016-11-15 15:01:03 -0800
committerJason Evans <jasone@canonware.com>2016-11-15 15:01:03 -0800
commit8a4528bdd16eee1b1c00c4305ee246568d382b0a (patch)
treef57e88012a0fbd26e945276d3ec450b6858acf76 /doc
parent2c951545011f201c89765b9ada656e99538d95aa (diff)
downloadplatform_external_jemalloc_new-8a4528bdd16eee1b1c00c4305ee246568d382b0a.tar.gz
platform_external_jemalloc_new-8a4528bdd16eee1b1c00c4305ee246568d382b0a.tar.bz2
platform_external_jemalloc_new-8a4528bdd16eee1b1c00c4305ee246568d382b0a.zip
Uniformly cast mallctl[bymib]() oldp/newp arguments to (void *).
This avoids warnings in some cases, and is otherwise generally good hygiene.
Diffstat (limited to 'doc')
-rw-r--r--doc/jemalloc.xml.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/jemalloc.xml.in b/doc/jemalloc.xml.in
index 747cc071..250a2a83 100644
--- a/doc/jemalloc.xml.in
+++ b/doc/jemalloc.xml.in
@@ -406,7 +406,7 @@ for (i = 0; i < nbins; i++) {
mib[2] = i;
len = sizeof(bin_size);
- mallctlbymib(mib, miblen, &bin_size, &len, NULL, 0);
+ mallctlbymib(mib, miblen, (void *)&bin_size, &len, NULL, 0);
/* Do something with bin_size... */
}]]></programlisting></para>