summaryrefslogtreecommitdiffstats
path: root/profile.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-03-11 11:15:03 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-03-11 11:15:03 -0700
commitddff93f096be8e8c8670b9bf526ccf67545720af (patch)
tree7c08f9f9026875be270fd3f7b4ac23fd0056646b /profile.c
parent22eb8e06177fb395a03c9404e46d48fbc3f5cf37 (diff)
downloadsubsurface-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 'profile.c')
-rw-r--r--profile.c2
1 files changed, 1 insertions, 1 deletions
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;