mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Always show notes when replanning
... as per popular request. Plus adding const keyword to constant strings. Signed-off-by: Robert C. Helling <helling@atdotde.de>
This commit is contained in:
parent
d344779c47
commit
1b744c7639
2 changed files with 3 additions and 4 deletions
|
|
@ -538,7 +538,7 @@ static void add_plan_to_notes(struct diveplan *diveplan, struct dive *dive, bool
|
|||
const unsigned int sz_temp = 100000;
|
||||
char *buffer = (char *)malloc(sz_buffer);
|
||||
char *temp = (char *)malloc(sz_temp);
|
||||
char *deco, *segmentsymbol;
|
||||
const char *deco, *segmentsymbol;
|
||||
static char buf[1000];
|
||||
int len, lastdepth = 0, lasttime = 0, lastsetpoint = -1, newdepth = 0, lastprintdepth = 0, lastprintsetpoint = -1;
|
||||
struct gasmix lastprintgasmix = {{ -1 }, { -1 }};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue