diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-03-13 22:12:23 +0100 |
---|---|---|
committer | Lubomir I. Ivanov <neolit123@gmail.com> | 2018-04-11 14:01:51 +0300 |
commit | f7b2355cedb75a8ed97644c05d57977f993cb08b (patch) | |
tree | 418456caa1f16a660002867f346ca3f89b88e8fe /core/dive.h | |
parent | 44bcc5a30772237e7f0f47d618af345520fb5804 (diff) | |
download | subsurface-f7b2355cedb75a8ed97644c05d57977f993cb08b.tar.gz |
Cleanup: unconstify results of two functions
get_dive_date_c_string() and get_current_date() return copied strings.
Make this explicit by returning non-const pointers.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/dive.h')
-rw-r--r-- | core/dive.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/dive.h b/core/dive.h index ca0325192..f81423f24 100644 --- a/core/dive.h +++ b/core/dive.h @@ -1016,7 +1016,7 @@ extern void set_userid(const char *user_id); extern void set_informational_units(const char *units); extern void set_git_prefs(const char *prefs); -extern const char *get_dive_date_c_string(timestamp_t when); +extern char *get_dive_date_c_string(timestamp_t when); extern void update_setpoint_events(struct dive *dive, struct divecomputer *dc); #ifdef __cplusplus } |