From 158c3c0b0e233b3fa2dd61689b3add12cc5ff655 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Salvador=20Cu=C3=B1at?= Date: Sun, 30 Aug 2020 10:30:30 +0200 Subject: [PATCH] datatrak.c: return const string for tank type MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As Berthold points out, this string shouldn't be modifiable. Signed-off-by: Salvador Cuñat --- core/datatrak.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/datatrak.c b/core/datatrak.c index 34e9bda5b..9a0af0cc1 100644 --- a/core/datatrak.c +++ b/core/datatrak.c @@ -128,7 +128,7 @@ static int dtrak_prepare_data(int model, device_data_t *dev_data) * Just get the first in the user's list for given size. * Reaching the end of the list means there is no tank of this size. */ -static char *cyl_type_by_size(int size) +static const char *cyl_type_by_size(int size) { struct tank_info_t *ti = tank_info;