summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dive.h2
-rw-r--r--profile.c2
2 files changed, 2 insertions, 2 deletions
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;