summaryrefslogtreecommitdiff
path: root/rts/LdvProfile.c
diff options
context:
space:
mode:
authorErik de Castro Lopo <erikd@mega-nerd.com>2016-05-12 15:45:00 +0200
committerBen Gamari <ben@smart-cactus.org>2016-05-12 17:33:39 +0200
commit995cf0f356ef3a8b7a394de640a853fd6ca9c2b5 (patch)
tree54cac37b35be9896ea94e8db806a2bd5cf8ae431 /rts/LdvProfile.c
parent69c974fef825cfc286c9cad17ed8f4e138bf84fc (diff)
downloadhaskell-995cf0f356ef3a8b7a394de640a853fd6ca9c2b5.tar.gz
rts: Make function pointer parameters `const` where possible
If a function takes a pointer parameter and doesn't update what the pointer points to, we can add `const` to the parameter declaration to document that no updates occur. Test Plan: Validate on Linux, OS X and Windows Reviewers: austin, Phyx, bgamari, simonmar, hsyl20 Reviewed By: bgamari, simonmar, hsyl20 Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D2200
Diffstat (limited to 'rts/LdvProfile.c')
-rw-r--r--rts/LdvProfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rts/LdvProfile.c b/rts/LdvProfile.c
index 1dfdc56b34..428078bb40 100644
--- a/rts/LdvProfile.c
+++ b/rts/LdvProfile.c
@@ -28,7 +28,7 @@
* header portion, so that the caller can find the next closure.
* ----------------------------------------------------------------------- */
STATIC_INLINE uint32_t
-processHeapClosureForDead( StgClosure *c )
+processHeapClosureForDead( const StgClosure *c )
{
uint32_t size;
const StgInfoTable *info;