From ddff93f096be8e8c8670b9bf526ccf67545720af Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 11 Mar 2015 11:15:03 -0700 Subject: 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 --- dive.h | 2 +- profile.c | 2 +- 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; -- cgit v1.2.3-70-g09d2