datatrak.c: return const string for tank type

As Berthold points out, this string shouldn't be modifiable.

Signed-off-by: Salvador Cuñat <salvador.cunat@gmail.com>
This commit is contained in:
Salvador Cuñat 2020-08-30 10:30:30 +02:00 committed by Dirk Hohndel
parent 080a7f1a17
commit 158c3c0b0e

View file

@ -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;