Commit 1e670101 authored by Erik de Castro Lopo's avatar Erik de Castro Lopo
Browse files

RtsFlags.c: Const correct fixes

Test Plan: validate

Reviewers: hvr, austin, simonmar, bgamari

Reviewed By: bgamari

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D2275
parent d40682ec
...@@ -1609,8 +1609,8 @@ static rtsBool read_heap_profiling_flag(const char *arg) ...@@ -1609,8 +1609,8 @@ static rtsBool read_heap_profiling_flag(const char *arg)
case 'b': case 'b':
if (arg[2] != '\0' && arg[3] != '\0') { if (arg[2] != '\0' && arg[3] != '\0') {
{ {
char *left = strchr(arg, '{'); const char *left = strchr(arg, '{');
char *right = strrchr(arg, '}'); const char *right = strrchr(arg, '}');
// curly braces are optional, for // curly braces are optional, for
// backwards compat. // backwards compat.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment