diff options
author | Salvador Cuñat <salvador.cunat@gmail.com> | 2020-08-30 10:30:30 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-09-03 11:38:13 -0700 |
commit | 158c3c0b0e233b3fa2dd61689b3add12cc5ff655 (patch) | |
tree | f6029e42d603ca8921a55d95affc724bfee2f13e | |
parent | 080a7f1a177ddb9cb7163d230039bbdf7f973f9a (diff) | |
download | subsurface-158c3c0b0e233b3fa2dd61689b3add12cc5ff655.tar.gz |
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>
-rw-r--r-- | core/datatrak.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |