mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
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:
parent
080a7f1a17
commit
158c3c0b0e
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue