diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-03-11 11:15:03 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-03-11 11:15:03 -0700 |
commit | ddff93f096be8e8c8670b9bf526ccf67545720af (patch) | |
tree | 7c08f9f9026875be270fd3f7b4ac23fd0056646b /dive.h | |
parent | 22eb8e06177fb395a03c9404e46d48fbc3f5cf37 (diff) | |
download | subsurface-ddff93f096be8e8c8670b9bf526ccf67545720af.tar.gz |
Event name should be a const char *
This avoids a possible warning when calling this function with a string
literal as second argument.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.h')
-rw-r--r-- | dive.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -811,7 +811,7 @@ void dump_plan(struct diveplan *diveplan); int plan(struct diveplan *diveplan, char **cached_datap, bool is_planner, bool show_disclaimer); void delete_single_dive(int idx); -struct event *get_next_event(struct event *event, char *name); +struct event *get_next_event(struct event *event, const char *name); /* these structs holds the information that |