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>
This commit is contained in:
Berthold Stoeger 2018-03-13 22:12:23 +01:00 committed by Lubomir I. Ivanov
parent 44bcc5a307
commit f7b2355ced
5 changed files with 12 additions and 12 deletions

View file

@ -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
}