diff --git a/dive.h b/dive.h index e189b860d..528b45a4b 100644 --- a/dive.h +++ b/dive.h @@ -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 diff --git a/profile.c b/profile.c index 53c50e303..7296733df 100644 --- a/profile.c +++ b/profile.c @@ -336,7 +336,7 @@ int get_cylinder_index(struct dive *dive, struct event *ev) return best; } -struct event *get_next_event(struct event *event, char *name) +struct event *get_next_event(struct event *event, const char *name) { if (!name || !*name) return NULL;