From 59a714725bd808331c24be603f3f0cc521715779 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Tue, 25 Jun 2019 12:19:36 +0200 Subject: [PATCH] Read-only strings should be const char * --- src/stats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stats.c b/src/stats.c index f7160a7..510bc35 100644 --- a/src/stats.c +++ b/src/stats.c @@ -123,7 +123,7 @@ static void mi_stats_add(mi_stats_t* stats, const mi_stats_t* src) { static void mi_printf_amount(int64_t n, int64_t unit, FILE* out, const char* fmt) { char buf[32]; int len = 32; - char* suffix = (unit <= 0 ? " " : "b"); + const char* suffix = (unit <= 0 ? " " : "b"); double base = (unit == 0 ? 1000.0 : 1024.0); if (unit>0) n *= unit;