mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +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.
|
* 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.
|
* 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;
|
struct tank_info_t *ti = tank_info;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue